Jvmstat

sun.jvmstat.perfdata.monitor
Class PerfLongMonitor

java.lang.Object
  extended by sun.jvmstat.monitor.AbstractMonitor
      extended by 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

Field Summary
 
Fields inherited from class sun.jvmstat.monitor.AbstractMonitor
name, supported, units, variability, vectorLength
 
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 sun.jvmstat.monitor.AbstractMonitor
getBaseName, getName, getUnits, getVariability, getVectorLength, isSupported, isVector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface sun.jvmstat.monitor.Monitor
getBaseName, getName, getUnits, getVariability, getVectorLength, isSupported, isVector
 

Constructor Detail

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 instrument
u - the units of measure attribute
v - the variability attribute
supported - support level indicator
lb - the buffer containing the long instrument data.
Method Detail

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

Jvmstat