Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
value()
Returns the metric's current value.
|
processWith
public JmxGauge(java.lang.String objectName, java.lang.String attribute) throws javax.management.MalformedObjectNameException
JmxGauge
for the given attribute of the given MBean.objectName
- the string value of the MBean's ObjectName
attribute
- the MBean attribute's namejavax.management.MalformedObjectNameException
- if objectName
is malformedpublic JmxGauge(javax.management.ObjectName objectName, java.lang.String attribute)
JmxGauge
for the given attribute of the given MBean.objectName
- the MBean's ObjectName
attribute
- the MBean attribute's name