com.yammer.metrics.core
Class JmxGauge

java.lang.Object
  extended by com.yammer.metrics.core.GaugeMetric<Object>
      extended by 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.


Constructor Summary
JmxGauge(String name, String attribute)
           
 
Method Summary
 Object value()
          Returns the metric's current value.
 
Methods inherited from class com.yammer.metrics.core.GaugeMetric
processWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxGauge

public JmxGauge(String name,
                String attribute)
         throws MalformedObjectNameException
Throws:
MalformedObjectNameException
Method Detail

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.