public class LMTPServer extends AbstractProtocolAsyncServer implements LMTPServerMBean
Modifier and Type | Class and Description |
---|---|
class |
LMTPServer.LMTPConfigurationImpl
A class to provide SMTP handler configuration to the handlers
|
connectionLimit, connPerIP, DEFAULT_BACKLOG, DEFAULT_MAX_EXECUTOR_COUNT, DEFAULT_TIMEOUT, HELLO_NAME, jmxName
Constructor and Description |
---|
LMTPServer() |
Modifier and Type | Method and Description |
---|---|
protected org.jboss.netty.channel.ChannelUpstreamHandler |
createCoreHandler() |
void |
doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) |
protected Class<? extends HandlersPackage> |
getCoreHandlersPackage()
Return the
HandlersPackage which is responsible to load the core ProtocolHandler |
protected String |
getDefaultJMXName()
Return the default name of the the server in JMX if none is configured
via "jmxname" in the configuration
|
int |
getDefaultPort()
Return the default port which will get used for this server if non is
specify in the configuration
|
String |
getHeloName()
Return the hello name
|
protected Class<? extends HandlersPackage> |
getJMXHandlersPackage()
Return the
HandlersPackage which is responsible to load the jmx ProtocolHandler |
long |
getMaximalMessageSize()
Return the maximum allowed size of the message
|
String |
getServiceType()
Return the service type of the server
|
void |
setMaximalMessageSize(long maxSize)
Set the maximum allowed size of messages.
|
getProtocolHandlerChain, postDestroy, preInit, setProtocolHandlerLoader
configure, configureBootstrap, configureHelloName, createBossExecutor, createExecutionHander, createPipelineFactory, createWorkerExecutor, destroy, getBoundAddresses, getConnectionCountHandler, getCurrentConnections, 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
getBoundAddresses, getCurrentConnections, getHandledConnections, getMaximumConcurrentConnections, getSocketType, getStartTLSSupported, getTimeout, isEnabled, isStarted, start, stop
public int getDefaultPort()
AbstractConfigurableAsyncServer
getDefaultPort
in class AbstractConfigurableAsyncServer
AbstractConfigurableAsyncServer.getDefaultPort()
public String getServiceType()
ServerMBean
getServiceType
in interface ServerMBean
ServerMBean.getServiceType()
public void doConfigure(org.apache.commons.configuration.HierarchicalConfiguration configuration) throws org.apache.commons.configuration.ConfigurationException
doConfigure
in class AbstractProtocolAsyncServer
org.apache.commons.configuration.ConfigurationException
public long getMaximalMessageSize()
LMTPServerMBean
getMaximalMessageSize
in interface LMTPServerMBean
LMTPServerMBean.getMaximalMessageSize()
protected String getDefaultJMXName()
AbstractConfigurableAsyncServer
getDefaultJMXName
in class AbstractConfigurableAsyncServer
AbstractConfigurableAsyncServer.getDefaultJMXName()
public void setMaximalMessageSize(long maxSize)
LMTPServerMBean
setMaximalMessageSize
in interface LMTPServerMBean
SMTPServerMBean.setMaximalMessageSize(long)
public String getHeloName()
LMTPServerMBean
getHeloName
in interface LMTPServerMBean
LMTPServerMBean.getHeloName()
protected org.jboss.netty.channel.ChannelUpstreamHandler createCoreHandler()
createCoreHandler
in class AbstractConfigurableAsyncServer
protected Class<? extends HandlersPackage> getCoreHandlersPackage()
AbstractProtocolAsyncServer
HandlersPackage
which is responsible to load the core ProtocolHandler
getCoreHandlersPackage
in class AbstractProtocolAsyncServer
protected Class<? extends HandlersPackage> getJMXHandlersPackage()
AbstractProtocolAsyncServer
HandlersPackage
which is responsible to load the jmx ProtocolHandler
getJMXHandlersPackage
in class AbstractProtocolAsyncServer
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.