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 processedConstructor 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.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 String getDefaultJMXName()
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
public void destroy()
destroy
in interface org.apache.james.protocols.api.handler.LifecycleAwareProtocolHandler
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.