public class MetricsMBeanImpl extends Object implements MetricsMBean
| Constructor and Description |
|---|
MetricsMBeanImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the keys and values from this MetricsMBean.
|
Object |
get(String name) |
Object |
getAttribute(String arg0) |
AttributeList |
getAttributes(String[] arg0) |
MBeanInfo |
getMBeanInfo() |
boolean |
hasKey(String name)
Check if we're tracking a certain named key/metric
|
Object |
invoke(String name,
Object[] args,
String[] signature) |
void |
put(String name,
Object value)
Add a key/metric and its value to track
|
void |
reset() |
void |
setAttribute(Attribute attr) |
AttributeList |
setAttributes(AttributeList arg0) |
public Object getAttribute(String arg0) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] arg0)
getAttributes in interface DynamicMBeanpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic Object invoke(String name, Object[] args, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attr) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList setAttributes(AttributeList arg0)
setAttributes in interface DynamicMBeanpublic boolean hasKey(String name)
MetricsMBeanhasKey in interface MetricsMBeanpublic void put(String name, Object value) throws IOException
MetricsMBeanput in interface MetricsMBeanname - Name of the key/metricvalue - value associated with the keyIOExceptionpublic Object get(String name) throws IOException
get in interface MetricsMBeanIOExceptionpublic void reset()
public void clear()
MetricsMBeanclear in interface MetricsMBeanCopyright © 2017 The Apache Software Foundation. All rights reserved.