sun.jvmstat.perfdata.monitor
Class PerfIntegerMonitor
java.lang.Object
sun.jvmstat.monitor.AbstractMonitor
sun.jvmstat.perfdata.monitor.PerfIntegerMonitor
- All Implemented Interfaces:
- IntegerMonitor, Monitor
public class PerfIntegerMonitor
- extends AbstractMonitor
- implements IntegerMonitor
Class for monitoring a PerfData Integer instrument.
- Since:
- 1.5
Constructor Summary |
PerfIntegerMonitor(String name,
sun.management.counter.Units u,
sun.management.counter.Variability v,
boolean supported,
IntBuffer ib)
Constructor to create an IntegerMonitor object for the integer
instrument represented by the data in the given buffer. |
Method Summary |
Object |
getValue()
Return an Object that encapsulates this instrumentation object's
current data value. |
int |
intValue()
Return the current value of the IntegerInstrument as an int. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfIntegerMonitor
public PerfIntegerMonitor(String name,
sun.management.counter.Units u,
sun.management.counter.Variability v,
boolean supported,
IntBuffer ib)
- Constructor to create an IntegerMonitor object for the integer
instrument represented by the data in the given buffer.
- Parameters:
name
- the name of the integer instrumentu
- the units of measure attributev
- the variability attributesupported
- support level indicatorib
- the buffer containing the integer instrument data.
getValue
public Object getValue()
- Return an Object that encapsulates this instrumentation object's
current data value.
The object returned contains an Integer object containing the
current value of the IntegerInstrument.
- Specified by:
getValue
in interface Monitor
- Specified by:
getValue
in class AbstractMonitor
- Returns:
- Object - the current value of the the IntegerInstrument. The
return type is guaranteed to be of type Integer.
intValue
public int intValue()
- Return the current value of the IntegerInstrument as an int.
- Specified by:
intValue
in interface IntegerMonitor
- Returns:
- int - a the current value of the IntegerInstrument.