public interface MetricsMBean extends DynamicMBean
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the keys and values from this MetricsMBean.
|
Object |
get(String name) |
boolean |
hasKey(String name)
Check if we're tracking a certain named key/metric
|
void |
put(String name,
Object value)
Add a key/metric and its value to track
|
getAttribute, getAttributes, getMBeanInfo, invoke, setAttribute, setAttributesboolean hasKey(String name)
void put(String name, Object value) throws IOException
name - Name of the key/metricvalue - value associated with the keyExceptionIOExceptionObject get(String name) throws IOException
name - ExceptionIOExceptionvoid clear()
Copyright © 2017 The Apache Software Foundation. All rights reserved.