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
AbstractCommandHandlerStats for the given
CommandHandler |
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.ExtensibleHandler
ExtensibleHandler.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.ExtensibleHandler
org.apache.james.protocols.api.handler.WiringException
ExtensibleHandler.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
CommandHandler
handler
- Exception
public void init(org.apache.commons.configuration.Configuration config) throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandler
Configuration
init
in interface InitializingLifecycleAwareProtocolHandler
org.apache.commons.configuration.ConfigurationException
protected abstract String getDefaultJMXName()
protected String getJMXName()
public void destroy()
destroy
in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.