public class SMTPCommandHandlerStats extends AbstractCommandHandlerStats implements SMTPCommandHandlerStatsMBean, Disposable
CommandHandler via JMX| Constructor 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, 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, getNamedisposepublic SMTPCommandHandlerStats(String jmxPath, String handlerName, String[] commands) throws NotCompliantMBeanException, MalformedObjectNameException, NullPointerException, InstanceAlreadyExistsException, MBeanRegistrationException
public long getTemporaryError()
SMTPCommandHandlerStatsMBeangetTemporaryError in interface SMTPCommandHandlerStatsMBeanSMTPCommandHandlerStatsMBean.getTemporaryError()public long getPermantError()
SMTPCommandHandlerStatsMBeangetPermantError in interface SMTPCommandHandlerStatsMBeanSMTPCommandHandlerStatsMBean.getPermantError()public long getOk()
SMTPCommandHandlerStatsMBeangetOk in interface SMTPCommandHandlerStatsMBeanSMTPCommandHandlerStatsMBean.getOk()protected void incrementStats(org.apache.james.protocols.api.Response response)
AbstractCommandHandlerStatsincrementStats in class AbstractCommandHandlerStatsAbstractCommandHandlerStats.incrementStats(org.apache.james.protocols.api.Response)Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.