com.espertech.esper.metrics.codahale_metrics.metrics.util
Class JmxGauge

java.lang.Object
  extended by com.espertech.esper.metrics.codahale_metrics.metrics.core.Gauge<java.lang.Object>
      extended by com.espertech.esper.metrics.codahale_metrics.metrics.util.JmxGauge
All Implemented Interfaces:
Metric

public class JmxGauge
extends Gauge<java.lang.Object>

A gauge which exposes an attribute of a JMX MBean.


Constructor Summary
JmxGauge(javax.management.ObjectName objectName, java.lang.String attribute)
          Creates a new JmxGauge for the given attribute of the given MBean.
JmxGauge(java.lang.String objectName, java.lang.String attribute)
          Creates a new JmxGauge for the given attribute of the given MBean.
 
Method Summary
 java.lang.Object value()
          Returns the metric's current value.
 
Methods inherited from class com.espertech.esper.metrics.codahale_metrics.metrics.core.Gauge
processWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JmxGauge

public JmxGauge(java.lang.String objectName,
                java.lang.String attribute)
         throws javax.management.MalformedObjectNameException
Creates a new JmxGauge for the given attribute of the given MBean.

Parameters:
objectName - the string value of the MBean's ObjectName
attribute - the MBean attribute's name
Throws:
javax.management.MalformedObjectNameException - if objectName is malformed

JmxGauge

public JmxGauge(javax.management.ObjectName objectName,
                java.lang.String attribute)
Creates a new JmxGauge for the given attribute of the given MBean.

Parameters:
objectName - the MBean's ObjectName
attribute - the MBean attribute's name
Method Detail

value

public java.lang.Object value()
Description copied from class: Gauge
Returns the metric's current value.

Specified by:
value in class Gauge<java.lang.Object>
Returns:
the metric's current value

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com