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

public Class PerfLongMonitor

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

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

Field Summary

Modifier and TypeField and Description
pack-priv LongBuffer
lb

The buffer containing the data for the long instrument.

Inherited from sun.jvmstat.monitor.AbstractMonitor:
namesupportedunitsvariabilityvectorLength

Constructor Summary

AccessConstructor and Description
public
PerfLongMonitor(String
the name of the long instrument
name
,
Units
the units of measure attribute
u
,
Variability
the variability attribute
v
,
boolean
support level indicator
supported
,
LongBuffer
the buffer containing the long instrument data.
lb
)

Constructor to create a LongMonitor object for the long 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 LongInstrument. The return type is guaranteed to be of type Long.
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 long

Returns:

long - the current value of the LongInstrument
longValue
()

Implements sun.jvmstat.monitor.LongMonitor.longValue.

Return the current value of the LongInstrument as an long.

Inherited from sun.jvmstat.monitor.AbstractMonitor:
getBaseNamegetNamegetUnitsgetVariabilitygetVectorLengthisSupportedisVector

Field Detail

lbback to summary
pack-priv LongBuffer lb

The buffer containing the data for the long instrument.

Constructor Detail

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

the name of the long instrument

u:Units

the units of measure attribute

v:Variability

the variability attribute

supported:boolean

support level indicator

lb:LongBuffer

the buffer containing the long 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 a Long object containing the current value of the LongInstrument.

Returns:Object

Object - the current value of the LongInstrument. The return type is guaranteed to be of type Long.

longValueback to summary
public long longValue()

Implements sun.jvmstat.monitor.LongMonitor.longValue.

Return the current value of the LongInstrument as an long.

Returns:long

long - the current value of the LongInstrument