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, increment
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommands
getAll, getDisconnect, getName
public POP3CommandHandlerStats(String jmxPath, String handlerName, String[] commands) throws NotCompliantMBeanException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException
protected void incrementStats(org.apache.james.protocols.api.Response response)
AbstractCommandHandlerStats
incrementStats
in class AbstractCommandHandlerStats
#increment(org.apache.james.protocols.api.Response)
public long getError()
POP3CommandHandlerStatsMBean
getError
in interface POP3CommandHandlerStatsMBean
POP3CommandHandlerStatsMBean.getError()
public long getOk()
POP3CommandHandlerStatsMBean
getOk
in interface POP3CommandHandlerStatsMBean
POP3CommandHandlerStatsMBean.getOk()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.