public class

PerfLongMonitor

extends AbstractMonitor
implements LongMonitor
java.lang.Object
   ↳ sun.jvmstat.monitor.AbstractMonitor
     ↳ sun.jvmstat.perfdata.monitor.PerfLongMonitor

Class Overview

Class for monitoring a PerfData Long instrument.

Summary

[Expand]
Inherited Fields
From class sun.jvmstat.monitor.AbstractMonitor
Public Constructors
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.
Public Methods
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.
long longValue()
Return the current value of the LongInstrument as an long.
[Expand]
Inherited Methods
From class sun.jvmstat.monitor.AbstractMonitor
From class java.lang.Object
From interface sun.jvmstat.monitor.LongMonitor
From interface sun.jvmstat.monitor.Monitor

Public Constructors

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 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.

Public Methods

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.

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

public long longValue ()

Return the current value of the LongInstrument as an long.

Returns
  • long - the current value of the LongInstrument