Jvmstat

sun.jvmstat.perfdata.monitor
Class PerfIntegerMonitor

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

Field Summary
 
Fields inherited from class sun.jvmstat.monitor.AbstractMonitor
name, supported, units, variability, vectorLength
 
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 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

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

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.

Jvmstat