public abstract class AbstractProtocolAsyncServer extends AbstractConfigurableAsyncServer
ProtocolHandlerLoader
for loading the ProtocolHandler
connectionLimit, connPerIP, DEFAULT_BACKLOG, DEFAULT_MAX_EXECUTOR_COUNT, DEFAULT_TIMEOUT, HELLO_NAME, jmxName
Constructor and Description |
---|
AbstractProtocolAsyncServer() |
Modifier and Type | Method and Description |
---|---|
protected void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) |
protected abstract Class<? extends HandlersPackage> |
getCoreHandlersPackage()
Return the
HandlersPackage which is responsible to load the core ProtocolHandler |
protected abstract Class<? extends HandlersPackage> |
getJMXHandlersPackage()
Return the
HandlersPackage which is responsible to load the jmx ProtocolHandler |
protected org.apache.james.protocols.api.handler.ProtocolHandlerChain |
getProtocolHandlerChain()
Return the
ProtocolHandlerChain which contains all loaded handlers |
protected void |
postDestroy() |
protected void |
preInit()
This method is called on init of the Server.
|
void |
setProtocolHandlerLoader(ProtocolHandlerLoader loader) |
configure, configureBootstrap, configureHelloName, createBossExecutor, createCoreHandler, createExecutionHander, createPipelineFactory, createWorkerExecutor, destroy, getBoundAddresses, getConnectionCountHandler, getCurrentConnections, getDefaultJMXName, getDefaultPort, getEnabledCipherSuites, getEncryption, getExecutionHandler, getFileSystem, getHandledConnections, getHelloName, getLogger, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getThreadPoolJMXPath, init, isEnabled, isStarted, registerMBean, setFileSystem, setLog, start, stop, unregisterMBean
bind, createSocketChannelFactory, getBacklog, getIoWorkerCount, getListenAddresses, getTimeout, isBound, setBacklog, setIoWorkerCount, setListenAddresses, setTimeout, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getServiceType, getTimeout
public void setProtocolHandlerLoader(ProtocolHandlerLoader loader)
protected void preInit() throws Exception
AbstractConfigurableAsyncServer
preInit
in class AbstractConfigurableAsyncServer
Exception
protected void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration config) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractConfigurableAsyncServer
org.apache.commons.configuration.ConfigurationException
protected void postDestroy()
postDestroy
in class AbstractConfigurableAsyncServer
protected org.apache.james.protocols.api.handler.ProtocolHandlerChain getProtocolHandlerChain()
ProtocolHandlerChain
which contains all loaded handlersprotected abstract Class<? extends HandlersPackage> getCoreHandlersPackage()
HandlersPackage
which is responsible to load the core ProtocolHandler
protected abstract Class<? extends HandlersPackage> getJMXHandlersPackage()
HandlersPackage
which is responsible to load the jmx ProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.