public abstract class NodeServer
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
protected Application |
application |
protected java.util.function.Consumer<Service> |
consumer |
protected NodeInterceptor |
interceptor |
protected java.util.Set<Service> |
interceptorServices |
static java.lang.String |
LINE_SEPARATOR |
protected java.util.Set<Service> |
localServices |
protected java.util.logging.Logger |
logger |
protected java.util.Set<Service> |
remoteServices |
protected ResourceFactory |
resourceFactory |
protected Server |
server |
protected RedkaleClassLoader |
serverClassLoader |
protected AnyValue |
serverConf |
protected java.lang.Thread |
serverThread |
protected java.lang.String |
sncpGroup |
构造器和说明 |
---|
NodeServer(Application application,
Server server) |
限定符和类型 | 方法和说明 |
---|---|
static <T extends NodeServer> |
create(java.lang.Class<T> clazz,
Application application,
AnyValue serconf) |
protected ClassFilter |
createClassFilter(java.lang.String localGroup,
java.lang.Class<? extends java.lang.annotation.Annotation> ref,
java.lang.Class inter,
java.lang.Class[] excludeSuperClasses,
java.lang.Class<? extends java.lang.annotation.Annotation> ref2,
java.lang.String properties,
java.lang.String property) |
protected abstract ClassFilter<Filter> |
createFilterClassFilter() |
protected ClassFilter |
createOtherClassFilter() |
protected ClassFilter<Service> |
createServiceClassFilter() |
protected abstract ClassFilter<Servlet> |
createServletClassFilter() |
java.util.Set<Service> |
getInterceptorServices() |
java.util.Set<Service> |
getLocalServices() |
java.util.logging.Logger |
getLogger() |
java.util.Set<Service> |
getRemoteServices() |
ResourceFactory |
getResourceFactory() |
<T extends Server> |
getServer() |
RedkaleClassLoader |
getServerClassLoader() |
AnyValue |
getServerConf() |
java.net.InetSocketAddress |
getSncpAddress() |
java.lang.String |
getSncpGroup() |
abstract java.net.InetSocketAddress |
getSocketAddress() |
void |
init(AnyValue config) |
boolean |
isSNCP() |
boolean |
isWATCH() |
protected abstract void |
loadFilter(ClassFilter<? extends Filter> filterFilter,
ClassFilter otherFilter) |
protected void |
loadService(ClassFilter<? extends Service> serviceFilter,
ClassFilter otherFilter) |
protected abstract void |
loadServlet(ClassFilter<? extends Servlet> servletFilter,
ClassFilter otherFilter) |
void |
setServerClassLoader(RedkaleClassLoader serverClassLoader) |
void |
shutdown() |
void |
start() |
public static final java.lang.String LINE_SEPARATOR
protected final java.util.logging.Logger logger
protected final Application application
protected final ResourceFactory resourceFactory
protected final Server server
protected RedkaleClassLoader serverClassLoader
protected final java.lang.Thread serverThread
protected java.lang.String sncpGroup
protected java.util.function.Consumer<Service> consumer
protected AnyValue serverConf
protected NodeInterceptor interceptor
protected final java.util.Set<Service> interceptorServices
protected final java.util.Set<Service> localServices
protected final java.util.Set<Service> remoteServices
public NodeServer(Application application, Server server)
public static <T extends NodeServer> NodeServer create(java.lang.Class<T> clazz, Application application, AnyValue serconf)
public void init(AnyValue config) throws java.lang.Exception
java.lang.Exception
protected abstract void loadFilter(ClassFilter<? extends Filter> filterFilter, ClassFilter otherFilter) throws java.lang.Exception
java.lang.Exception
protected abstract void loadServlet(ClassFilter<? extends Servlet> servletFilter, ClassFilter otherFilter) throws java.lang.Exception
java.lang.Exception
protected void loadService(ClassFilter<? extends Service> serviceFilter, ClassFilter otherFilter) throws java.lang.Exception
java.lang.Exception
protected abstract ClassFilter<Filter> createFilterClassFilter()
protected abstract ClassFilter<Servlet> createServletClassFilter()
protected ClassFilter createOtherClassFilter()
protected ClassFilter<Service> createServiceClassFilter()
protected ClassFilter createClassFilter(java.lang.String localGroup, java.lang.Class<? extends java.lang.annotation.Annotation> ref, java.lang.Class inter, java.lang.Class[] excludeSuperClasses, java.lang.Class<? extends java.lang.annotation.Annotation> ref2, java.lang.String properties, java.lang.String property)
public abstract java.net.InetSocketAddress getSocketAddress()
public boolean isSNCP()
public boolean isWATCH()
public ResourceFactory getResourceFactory()
public RedkaleClassLoader getServerClassLoader()
public void setServerClassLoader(RedkaleClassLoader serverClassLoader)
public java.net.InetSocketAddress getSncpAddress()
public AnyValue getServerConf()
public java.util.logging.Logger getLogger()
public java.lang.String getSncpGroup()
public void start() throws java.io.IOException
java.io.IOException
public void shutdown() throws java.io.IOException
java.io.IOException
public <T extends Server> T getServer()
public java.util.Set<Service> getInterceptorServices()
public java.util.Set<Service> getLocalServices()
public java.util.Set<Service> getRemoteServices()