public abstract class AbstractCommandHandlerResultJMXMonitor<S extends org.apache.james.protocols.api.ProtocolSession> extends Object implements org.apache.james.protocols.api.handler.ProtocolHandlerResultHandler<org.apache.james.protocols.api.Response,S>, org.apache.james.protocols.api.handler.ExtensibleHandler, InitializingLifecycleAwareProtocolHandler
CommandHandler| Constructor and Description | 
|---|
| AbstractCommandHandlerResultJMXMonitor() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract AbstractCommandHandlerStats | createCommandHandlerStats(org.apache.james.protocols.api.handler.CommandHandler<S> handler)Create the  AbstractCommandHandlerStatsfor the givenCommandHandler | 
| void | destroy() | 
| protected abstract String | getDefaultJMXName() | 
| protected String | getJMXName() | 
| List<Class<?>> | getMarkerInterfaces() | 
| void | init(org.apache.commons.configuration.Configuration config)Init with the given  Configuration | 
| org.apache.james.protocols.api.Response | onResponse(org.apache.james.protocols.api.ProtocolSession session,
          org.apache.james.protocols.api.Response response,
          long executionTime,
          org.apache.james.protocols.api.handler.ProtocolHandler handler) | 
| void | wireExtensions(Class<?> interfaceName,
              List<?> extension) | 
public AbstractCommandHandlerResultJMXMonitor()
public org.apache.james.protocols.api.Response onResponse(org.apache.james.protocols.api.ProtocolSession session,
                                                 org.apache.james.protocols.api.Response response,
                                                 long executionTime,
                                                 org.apache.james.protocols.api.handler.ProtocolHandler handler)
onResponse in interface org.apache.james.protocols.api.handler.ProtocolHandlerResultHandler<org.apache.james.protocols.api.Response,S extends org.apache.james.protocols.api.ProtocolSession>ProtocolHandlerResultHandler.onResponse(
 org.apache.james.protocols.api.ProtocolSession,
 org.apache.james.protocols.api.Response, long,
 org.apache.james.protocols.api.handler.ProtocolHandler)public List<Class<?>> getMarkerInterfaces()
getMarkerInterfaces in interface org.apache.james.protocols.api.handler.ExtensibleHandlerExtensibleHandler.getMarkerInterfaces()public void wireExtensions(Class<?> interfaceName, List<?> extension) throws org.apache.james.protocols.api.handler.WiringException
wireExtensions in interface org.apache.james.protocols.api.handler.ExtensibleHandlerorg.apache.james.protocols.api.handler.WiringExceptionExtensibleHandler.wireExtensions(java.lang.Class, java.util.List)protected abstract AbstractCommandHandlerStats createCommandHandlerStats(org.apache.james.protocols.api.handler.CommandHandler<S> handler) throws Exception
AbstractCommandHandlerStats for the given
 CommandHandlerhandler - Exceptionpublic void init(org.apache.commons.configuration.Configuration config)
          throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandlerConfigurationinit in interface InitializingLifecycleAwareProtocolHandlerorg.apache.commons.configuration.ConfigurationExceptionprotected abstract String getDefaultJMXName()
protected String getJMXName()
public void destroy()
destroy in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandlerCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.