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, setImplementation
public 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()
HandlerStatsMBean
getAll
in interface HandlerStatsMBean
HandlerStatsMBean.getAll()
public String getName()
HandlerStatsMBean
getName
in interface HandlerStatsMBean
HandlerStatsMBean.getName()
public long getDisconnect()
HandlerStatsMBean
getDisconnect
in interface HandlerStatsMBean
HandlerStatsMBean.getDisconnect()
public void dispose()
Disposable
dispose
in interface Disposable
Disposable.dispose()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.