public class HookResultJMXMonitor extends Object implements org.apache.james.protocols.smtp.hook.HookResultHook, org.apache.james.protocols.api.handler.ExtensibleHandler, InitializingLifecycleAwareProtocolHandler
HookResultHook implementation which will register a
HookStatsMBean under JMX for every Hook it processed| Constructor and Description |
|---|
HookResultJMXMonitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected String |
getDefaultJMXName() |
List<Class<?>> |
getMarkerInterfaces() |
void |
init(org.apache.commons.configuration.Configuration config)
Init with the given
Configuration |
org.apache.james.protocols.smtp.hook.HookResult |
onHookResult(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.james.protocols.smtp.hook.HookResult result,
long executionTime,
org.apache.james.protocols.smtp.hook.Hook hook) |
void |
wireExtensions(Class<?> interfaceName,
List<?> extension) |
public org.apache.james.protocols.smtp.hook.HookResult onHookResult(org.apache.james.protocols.smtp.SMTPSession session,
org.apache.james.protocols.smtp.hook.HookResult result,
long executionTime,
org.apache.james.protocols.smtp.hook.Hook hook)
onHookResult in interface org.apache.james.protocols.smtp.hook.HookResultHook#onHookResult(org.apache.james.protocols.smtp.SMTPSession,
org.apache.james.protocols.smtp.hook.HookResult, long,
org.apache.james.protocols.smtp.hook.Hook)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 String getDefaultJMXName()
public void init(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
InitializingLifecycleAwareProtocolHandlerConfigurationinit in interface InitializingLifecycleAwareProtocolHandlerorg.apache.commons.configuration.ConfigurationExceptionpublic void destroy()
destroy in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandlerCopyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.