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, setImplementation
public HookStats(String jmxName, String hookname) throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, MalformedObjectNameException, NullPointerException
public void increment(int code)
public long getOk()
HookStatsMBean
getOk
in interface HookStatsMBean
HookStatsMBean.getOk()
public long getDeclined()
HookStatsMBean
getDeclined
in interface HookStatsMBean
HookStatsMBean.getDeclined()
public long getDeny()
HookStatsMBean
getDeny
in interface HookStatsMBean
HookStatsMBean.getDeny()
public long getDenysoft()
HookStatsMBean
getDenysoft
in interface HookStatsMBean
HookStatsMBean.getDenysoft()
public void dispose()
Disposable
dispose
in interface Disposable
Disposable.dispose()
public String getName()
HookStatsMBean
getName
in interface HookStatsMBean
HookStatsMBean.getName()
public long getAll()
HookStatsMBean
getAll
in interface HookStatsMBean
HookStatsMBean.getAll()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.