public class SMTPCommandHandlerStats extends AbstractCommandHandlerStats implements SMTPCommandHandlerStatsMBean, Disposable
CommandHandler
via JMXConstructor and Description |
---|
SMTPCommandHandlerStats(String jmxPath,
String handlerName,
String[] commands) |
Modifier and Type | Method and Description |
---|---|
long |
getOk()
Return the count of successful handling returned by the handler
|
long |
getPermantError()
Return the count of permanent errors returned by the handler
|
long |
getTemporaryError()
Return the count of temporary errors 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
dispose
public SMTPCommandHandlerStats(String jmxPath, String handlerName, String[] commands) throws NotCompliantMBeanException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException
public long getTemporaryError()
SMTPCommandHandlerStatsMBean
getTemporaryError
in interface SMTPCommandHandlerStatsMBean
SMTPCommandHandlerStatsMBean.getTemporaryError()
public long getPermantError()
SMTPCommandHandlerStatsMBean
getPermantError
in interface SMTPCommandHandlerStatsMBean
SMTPCommandHandlerStatsMBean.getPermantError()
public long getOk()
SMTPCommandHandlerStatsMBean
getOk
in interface SMTPCommandHandlerStatsMBean
SMTPCommandHandlerStatsMBean.getOk()
protected void incrementStats(org.apache.james.protocols.api.Response response)
AbstractCommandHandlerStats
incrementStats
in class AbstractCommandHandlerStats
AbstractCommandHandlerStats.incrementStats(org.apache.james.protocols.api.Response)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.