Package com.codahale.metrics
Class JmxAttributeGauge
- java.lang.Object
-
- com.codahale.metrics.JmxAttributeGauge
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
attributeName
private javax.management.MBeanServer
mBeanServer
private javax.management.ObjectName
objectName
-
Constructor Summary
Constructors Constructor Description JmxAttributeGauge(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
Creates a new JmxAttributeGauge.JmxAttributeGauge(javax.management.ObjectName objectName, java.lang.String attributeName)
Creates a new JmxAttributeGauge.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getValue()
Returns the metric's current value.
-
-
-
Constructor Detail
-
JmxAttributeGauge
public JmxAttributeGauge(javax.management.ObjectName objectName, java.lang.String attributeName)
Creates a new JmxAttributeGauge.- Parameters:
objectName
- the name of the objectattributeName
- the name of the object's attribute
-
JmxAttributeGauge
public JmxAttributeGauge(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
Creates a new JmxAttributeGauge.- Parameters:
mBeanServer
- theMBeanServer
objectName
- the name of the objectattributeName
- the name of the object's attribute
-
-