sun.jvmstat.perfdata.monitor
Class PerfLongMonitor
java.lang.Object
sun.jvmstat.monitor.AbstractMonitor
sun.jvmstat.perfdata.monitor.PerfLongMonitor
- All Implemented Interfaces:
- LongMonitor, Monitor
public class PerfLongMonitor
- extends AbstractMonitor
- implements LongMonitor
Class for monitoring a PerfData Long instrument.
- Since:
- 1.5
Constructor Summary |
PerfLongMonitor(String name,
sun.management.counter.Units u,
sun.management.counter.Variability v,
boolean supported,
LongBuffer lb)
Constructor to create a LongMonitor object for the long 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. |
long |
longValue()
Return the current value of the LongInstrument as an long. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfLongMonitor
public PerfLongMonitor(String name,
sun.management.counter.Units u,
sun.management.counter.Variability v,
boolean supported,
LongBuffer lb)
- Constructor to create a LongMonitor object for the long instrument
represented by the data in the given buffer.
- Parameters:
name
- the name of the long instrumentu
- the units of measure attributev
- the variability attributesupported
- support level indicatorlb
- the buffer containing the long instrument data.
getValue
public Object getValue()
- Return an Object that encapsulates this instrumentation object's
current data value.
The object returned contains a Long object containing the
current value of the LongInstrument.
- Specified by:
getValue
in interface Monitor
- Specified by:
getValue
in class AbstractMonitor
- Returns:
- Object - the current value of the the LongInstrument. The
return type is guaranteed to be of type Long.
longValue
public long longValue()
- Return the current value of the LongInstrument as an long.
- Specified by:
longValue
in interface LongMonitor
- Returns:
- long - the current value of the LongInstrument