public class HookStats extends StandardMBean implements HookStatsMBean, Disposable
| Constructor and Description |
|---|
HookStats(String jmxName,
String hookname) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Dispose the object
|
long |
getAll()
Return the count of how many transaction this hook as processed
|
long |
getDeclined()
Return the count of how many DECLINED the hook returned
|
long |
getDeny()
Return the count of how many DENY the hook returned
|
long |
getDenysoft()
Return the count of how many DENYSOFT the hook returned
|
String |
getName()
Return the name of the Hook
|
long |
getOk()
Return the count of how many OK the hook returned
|
void |
increment(int code) |
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, setImplementationpublic HookStats(String jmxName, String hookname) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, MalformedObjectNameException, NullPointerException
public void increment(int code)
public long getOk()
HookStatsMBeangetOk in interface HookStatsMBeanHookStatsMBean.getOk()public long getDeclined()
HookStatsMBeangetDeclined in interface HookStatsMBeanHookStatsMBean.getDeclined()public long getDeny()
HookStatsMBeangetDeny in interface HookStatsMBeanHookStatsMBean.getDeny()public long getDenysoft()
HookStatsMBeangetDenysoft in interface HookStatsMBeanHookStatsMBean.getDenysoft()public void dispose()
Disposabledispose in interface DisposableDisposable.dispose()public String getName()
HookStatsMBeangetName in interface HookStatsMBeanHookStatsMBean.getName()public long getAll()
HookStatsMBeangetAll in interface HookStatsMBeanHookStatsMBean.getAll()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.