Constructor and Description |
---|
JmxGauge(ObjectName objectName,
String attribute)
Creates a new
JmxGauge for the given attribute of the given MBean. |
JmxGauge(String objectName,
String attribute)
Creates a new
JmxGauge for the given attribute of the given MBean. |
Modifier and Type | Method and Description |
---|---|
Object |
value()
Returns the metric's current value.
|
processWith
public JmxGauge(String objectName, String attribute) throws MalformedObjectNameException
JmxGauge
for the given attribute of the given MBean.objectName
- the string value of the MBean's ObjectName
attribute
- the MBean attribute's nameMalformedObjectNameException
- if objectName
is malformedpublic JmxGauge(ObjectName objectName, String attribute)
JmxGauge
for the given attribute of the given MBean.objectName
- the MBean's ObjectName
attribute
- the MBean attribute's name