com.yammer.metrics.core
Class JmxGauge
java.lang.Object
com.yammer.metrics.core.GaugeMetric<Object>
com.yammer.metrics.core.JmxGauge
- All Implemented Interfaces:
- Metric
public class JmxGauge
- extends GaugeMetric<Object>
A gauge which exposes an attribute of a JMX MBean.
|
Method Summary |
Object |
value()
Returns the metric's current value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JmxGauge
public JmxGauge(String name,
String attribute)
throws MalformedObjectNameException
- Throws:
MalformedObjectNameException
value
public Object value()
- Description copied from class:
GaugeMetric
- Returns the metric's current value.
- Specified by:
value in class GaugeMetric<Object>
- Returns:
- the metric's current value
Copyright © 2011. All Rights Reserved.