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, setAttributes
boolean hasKey(String name)
void put(String name, Object value) throws IOException
name
- Name of the key/metricvalue
- value associated with the keyException
IOException
Object get(String name) throws IOException
name
- Exception
IOException
void clear()
Copyright © 2016 The Apache Software Foundation. All rights reserved.