- java.lang.Object
-
- org.redkale.net.Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
-
- org.redkale.net.sncp.SncpServer
-
public class SncpServer extends Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
Service Node Communicate Protocol详情见: https://redkale.org
- 作者:
- zhangjx
-
-
字段概要
-
从类继承的字段 org.redkale.net.Server
address, aliveTimeoutSeconds, application, backlog, bufferCapacity, bufferPoolSize, charset, config, context, dispatcher, logger, maxBody, maxConns, maxHeader, name, netprotocol, readTimeoutSeconds, RESNAME_SERVER_ROOT, resourceFactory, responsePoolSize, serverChannel, serverClassLoader, serverStartTime, sslBuilder, sslContext, writeTimeoutSeconds
-
-
构造器概要
构造器 构造器 说明 SncpServer()
SncpServer(Application application, long serverStartTime, AnyValue serconf, ResourceFactory resourceFactory)
SncpServer(ResourceFactory resourceFactory)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SncpServer
addSncpFilter(SncpFilter filter, AnyValue conf)
添加SncpFilterSncpServlet
addSncpServlet(Service sncpService)
protected SncpContext
createContext()
protected ByteBufferPool
createSafeBufferPool(LongAdder createCounter, LongAdder cycleCounter, int bufferPoolSize)
protected ObjectPool<SncpResponse>
createSafeResponsePool(LongAdder createCounter, LongAdder cycleCounter, int responsePoolSize)
List<SncpFilter>
getSncpFilters()
List<SncpServlet>
getSncpServlets()
void
init(AnyValue config)
<T extends SncpFilter>
TremoveSncpFilter(Class<T> filterClass)
删除SncpFilterSncpServlet
removeSncpServlet(Service sncpService)
删除SncpServlet-
从类继承的方法 org.redkale.net.Server
addServlet, changeAddress, changeAliveTimeoutSeconds, changeCharset, changeMaxBody, changeMaxconns, changeMaxHeader, changeReadTimeoutSeconds, changeWriteTimeoutSeconds, containsFilter, containsFilter, containsServlet, containsServlet, destroy, destroyFilter, destroyServlet, formatLenth, getAliveTimeoutSeconds, getAsyncGroup, getBacklog, getBufferCapacity, getBufferPoolSize, getCharset, getClosedConnectionCount, getConfBufferCapacity, getConfBufferPoolSize, getConfNetprotocol, getContext, getCreateConnectionCount, getDispatcherServlet, getLivingConnectionCount, getLogger, getMaxBody, getMaxConns, getMaxHeader, getName, getNetprotocol, getReadTimeoutSeconds, getResourceFactory, getResponsePoolSize, getServerClassLoader, getServerStartTime, getSocketAddress, getWriteTimeoutSeconds, initContextConfig, loadLib, parseLenth, parseLenth, postPrepareInit, postStart, setServerClassLoader, shutdown, start, startExtLog
-
-
-
-
构造器详细资料
-
SncpServer
public SncpServer()
-
SncpServer
public SncpServer(ResourceFactory resourceFactory)
-
SncpServer
public SncpServer(Application application, long serverStartTime, AnyValue serconf, ResourceFactory resourceFactory)
-
-
方法详细资料
-
init
public void init(AnyValue config) throws Exception
- 覆盖:
init
在类中Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
- 抛出:
Exception
-
getSncpServlets
public List<SncpServlet> getSncpServlets()
-
getSncpFilters
public List<SncpFilter> getSncpFilters()
-
removeSncpFilter
public <T extends SncpFilter> T removeSncpFilter(Class<T> filterClass)
删除SncpFilter- 类型参数:
T
- 泛型- 参数:
filterClass
- SncpFilter类- 返回:
- SncpFilter
-
addSncpFilter
public SncpServer addSncpFilter(SncpFilter filter, AnyValue conf)
添加SncpFilter- 参数:
filter
- SncpFilterconf
- AnyValue- 返回:
- SncpServer
-
removeSncpServlet
public SncpServlet removeSncpServlet(Service sncpService)
删除SncpServlet- 参数:
sncpService
- Service- 返回:
- SncpServlet
-
addSncpServlet
public SncpServlet addSncpServlet(Service sncpService)
-
createContext
protected SncpContext createContext()
- 指定者:
createContext
在类中Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
-
createSafeBufferPool
protected ByteBufferPool createSafeBufferPool(LongAdder createCounter, LongAdder cycleCounter, int bufferPoolSize)
- 指定者:
createSafeBufferPool
在类中Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
-
createSafeResponsePool
protected ObjectPool<SncpResponse> createSafeResponsePool(LongAdder createCounter, LongAdder cycleCounter, int responsePoolSize)
- 指定者:
createSafeResponsePool
在类中Server<Uint128,SncpContext,SncpRequest,SncpResponse,SncpServlet>
-
-