Package com.codahale.metrics.jvm
Class JmxAttributeGauge
- java.lang.Object
-
- com.codahale.metrics.jvm.JmxAttributeGauge
-
- All Implemented Interfaces:
com.codahale.metrics.Gauge<Object>
,com.codahale.metrics.Metric
public class JmxAttributeGauge extends Object implements com.codahale.metrics.Gauge<Object>
AGauge
implementation which queries anMBeanServerConnection
for an attribute of an object.
-
-
Constructor Summary
Constructors Constructor Description JmxAttributeGauge(MBeanServerConnection mBeanServerConn, ObjectName objectName, String attributeName)
Creates a new JmxAttributeGauge.JmxAttributeGauge(ObjectName objectName, String attributeName)
Creates a new JmxAttributeGauge.
-
-
-
Constructor Detail
-
JmxAttributeGauge
public JmxAttributeGauge(ObjectName objectName, String attributeName)
Creates a new JmxAttributeGauge.- Parameters:
objectName
- the name of the objectattributeName
- the name of the object's attribute
-
JmxAttributeGauge
public JmxAttributeGauge(MBeanServerConnection mBeanServerConn, ObjectName objectName, String attributeName)
Creates a new JmxAttributeGauge.- Parameters:
mBeanServerConn
- theMBeanServerConnection
objectName
- the name of the objectattributeName
- the name of the object's attribute
-
-