Package com.codahale.metrics
Class JmxAttributeGauge
java.lang.Object
com.codahale.metrics.JmxAttributeGauge
A
Gauge implementation which queries a MBeanServer for an attribute of an object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final MBeanServerprivate final ObjectName -
Constructor Summary
ConstructorsConstructorDescriptionJmxAttributeGauge(MBeanServer mBeanServer, ObjectName objectName, String attributeName) Creates a new JmxAttributeGauge.JmxAttributeGauge(ObjectName objectName, String attributeName) Creates a new JmxAttributeGauge. -
Method Summary
-
Field Details
-
mBeanServer
-
objectName
-
attributeName
-
-
Constructor Details
-
JmxAttributeGauge
Creates a new JmxAttributeGauge.- Parameters:
objectName- the name of the objectattributeName- the name of the object's attribute
-
JmxAttributeGauge
Creates a new JmxAttributeGauge.- Parameters:
mBeanServer- theMBeanServerobjectName- the name of the objectattributeName- the name of the object's attribute
-
-
Method Details