public abstract class AbstractProtocolServer extends Object implements ProtocolServer, Log
Constructor and Description |
---|
AbstractProtocolServer(String protocolName) |
Modifier and Type | Method and Description |
---|---|
protected EmbeddedCacheManager |
cacheManager() |
protected org.infinispan.server.core.ProtocolServer.SuitableConfiguration |
configuration() |
EmbeddedCacheManager |
getCacheManager() |
org.infinispan.server.core.ProtocolServer.SuitableConfiguration |
getConfiguration()
Returns the configuration used to start this server
|
String |
getHost() |
LifecycleChannelPipelineFactory |
getPipeline()
Returns a pipeline factory
|
int |
getPort() |
protected void |
registerTransportMBean() |
void |
start(org.infinispan.server.core.ProtocolServer.SuitableConfiguration configuration,
EmbeddedCacheManager cacheManager)
Starts the server backed by the given cache manager and with the corresponding configuration.
|
Cache<Object,Object> |
startDefaultCache() |
protected void |
startInternal(org.infinispan.server.core.ProtocolServer.SuitableConfiguration configuration,
EmbeddedCacheManager cacheManager) |
void |
startTransport() |
void |
stop()
Stops the server
|
protected NettyTransport |
transport() |
protected void |
unregisterTransportMBean() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDecoder, getEncoder
debug, debug, debug, debug, debug, debugf, error, info, info, isDebugEnabled, isTraceEnabled, log, logChannelStillBound, logChannelStillConnected, logErrorBeforeReadingRequest, logExceptionReported, logPostingShutdownRequest, logServerDidNotClose, logServerDidNotUnbind, logSettingMasterThreadsNotSupported, logStartWithArgs, trace, trace, trace, trace, tracef, warn
public AbstractProtocolServer(String protocolName)
protected NettyTransport transport()
protected EmbeddedCacheManager cacheManager()
protected org.infinispan.server.core.ProtocolServer.SuitableConfiguration configuration()
protected void startInternal(org.infinispan.server.core.ProtocolServer.SuitableConfiguration configuration, EmbeddedCacheManager cacheManager)
public final void start(org.infinispan.server.core.ProtocolServer.SuitableConfiguration configuration, EmbeddedCacheManager cacheManager)
ProtocolServer
start
in interface ProtocolServer
public void startTransport()
public LifecycleChannelPipelineFactory getPipeline()
ProtocolServer
getPipeline
in interface ProtocolServer
protected void registerTransportMBean()
protected void unregisterTransportMBean()
public void stop()
ProtocolServer
stop
in interface ProtocolServer
public EmbeddedCacheManager getCacheManager()
public org.infinispan.server.core.ProtocolServer.SuitableConfiguration getConfiguration()
ProtocolServer
getConfiguration
in interface ProtocolServer
public String getHost()
public int getPort()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.