public class LineHandlerStats extends StandardMBean implements HandlerStatsMBean, Disposable
| Constructor and Description | 
|---|
| LineHandlerStats(String jmxName,
                String handlerName) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | dispose()Dispose the object | 
| long | getAll()Return the count of all processed transactions by the handler | 
| long | getDisconnect()Return how often the Handler issued a disconnect | 
| String | getName()Return the name of the handler | 
| void | increment(org.apache.james.protocols.api.Response response)Increment the stats | 
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic LineHandlerStats(String jmxName, String handlerName) throws NotCompliantMBeanException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException
public void increment(org.apache.james.protocols.api.Response response)
response - public long getAll()
HandlerStatsMBeangetAll in interface HandlerStatsMBeanHandlerStatsMBean.getAll()public String getName()
HandlerStatsMBeangetName in interface HandlerStatsMBeanHandlerStatsMBean.getName()public long getDisconnect()
HandlerStatsMBeangetDisconnect in interface HandlerStatsMBeanHandlerStatsMBean.getDisconnect()public void dispose()
Disposabledispose in interface DisposableDisposable.dispose()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.