APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.perfdata.monitor

public Class PerfIntegerMonitor

extends AbstractMonitor
implements IntegerMonitor
Class Inheritance
All Implemented Interfaces
sun.jvmstat.monitor.IntegerMonitor, sun.jvmstat.monitor.Monitor
Imports
sun.jvmstat.monitor.*, java.nio.IntBuffer

Class for monitoring a PerfData Integer instrument.
Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
pack-priv IntBuffer
ib

The buffer containing the data for the integer instrument.

Inherited from sun.jvmstat.monitor.AbstractMonitor:
namesupportedunitsvariabilityvectorLength

Constructor Summary

AccessConstructor and Description
public
PerfIntegerMonitor(String
the name of the integer instrument
name
,
Units
the units of measure attribute
u
,
Variability
the variability attribute
v
,
boolean
support level indicator
supported
,
IntBuffer
the buffer containing the integer instrument data.
ib
)

Constructor to create an IntegerMonitor object for the integer instrument represented by the data in the given buffer.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

Object - the current value of the IntegerInstrument. The return type is guaranteed to be of type Integer.
getValue
()

Implements abstract sun.jvmstat.monitor.AbstractMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

Return an Object that encapsulates this instrumentation object's current data value.

public int

Returns:

int - the current value of the IntegerInstrument.
intValue
()

Implements sun.jvmstat.monitor.IntegerMonitor.intValue.

Return the current value of the IntegerInstrument as an int.

Inherited from sun.jvmstat.monitor.AbstractMonitor:
getBaseNamegetNamegetUnitsgetVariabilitygetVectorLengthisSupportedisVector

Field Detail

ibback to summary
pack-priv IntBuffer ib

The buffer containing the data for the integer instrument.

Constructor Detail

PerfIntegerMonitorback to summary
public PerfIntegerMonitor(String name, Units u, 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:String

the name of the integer instrument

u:Units

the units of measure attribute

v:Variability

the variability attribute

supported:boolean

support level indicator

ib:IntBuffer

the buffer containing the integer instrument data.

Method Detail

getValueback to summary
public Object getValue()

Implements abstract sun.jvmstat.monitor.AbstractMonitor.getValue.

Implements sun.jvmstat.monitor.Monitor.getValue.

Doc from sun.jvmstat.monitor.Monitor.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.

Returns:Object

Object - the current value of the IntegerInstrument. The return type is guaranteed to be of type Integer.

intValueback to summary
public int intValue()

Implements sun.jvmstat.monitor.IntegerMonitor.intValue.

Return the current value of the IntegerInstrument as an int.

Returns:int

int - the current value of the IntegerInstrument.