public class POP3CommandHandlerStats extends AbstractCommandHandlerStats implements POP3CommandHandlerStatsMBean
| Constructor and Description |
|---|
POP3CommandHandlerStats(String jmxPath,
String handlerName,
String[] commands) |
| Modifier and Type | Method and Description |
|---|---|
long |
getError()
Return the count of errors returned by the handler
|
long |
getOk()
Return the count of successful handling returned by the handler
|
protected void |
incrementStats(org.apache.james.protocols.api.Response response)
Subclasses need to implement this to handle more precise stats
|
dispose, getAll, getCommands, getDisconnect, getName, incrementcacheMBeanInfo, 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, setImplementationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommandsgetAll, getDisconnect, getNamepublic POP3CommandHandlerStats(String jmxPath, String handlerName, String[] commands) throws NotCompliantMBeanException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException
protected void incrementStats(org.apache.james.protocols.api.Response response)
AbstractCommandHandlerStatsincrementStats in class AbstractCommandHandlerStats#increment(org.apache.james.protocols.api.Response)public long getError()
POP3CommandHandlerStatsMBeangetError in interface POP3CommandHandlerStatsMBeanPOP3CommandHandlerStatsMBean.getError()public long getOk()
POP3CommandHandlerStatsMBeangetOk in interface POP3CommandHandlerStatsMBeanPOP3CommandHandlerStatsMBean.getOk()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.