Package com.codahale.metrics
Class JmxAttributeGauge
- java.lang.Object
-
- com.codahale.metrics.JmxAttributeGauge
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringattributeNameprivate javax.management.MBeanServermBeanServerprivate javax.management.ObjectNameobjectName
-
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.ObjectgetValue()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- theMBeanServerobjectName- the name of the objectattributeName- the name of the object's attribute
-
-