Class Overview
Class for monitoring a PerfData Long instrument.
Summary
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
String
|
getBaseName()
Returns the base name of this instrumentation object.
|
String
|
getName()
Returns the name of this instrumentation object.
|
Units
|
getUnits()
Returns the Units for this instrumentation monitoring object.
|
abstract
Object
|
getValue()
Return an Object that encapsulates this instrumentation object's
current data value.
|
Variability
|
getVariability()
Returns the Variability for this instrumentation object.
|
int
|
getVectorLength()
Return the length of the vector.
|
boolean
|
isSupported()
Test if the instrumentation object is supported.
|
boolean
|
isVector()
Test if the instrumentation object is a vector type.
|
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
From interface
sun.jvmstat.monitor.LongMonitor
abstract
long
|
longValue()
Get the current value of this LongInstrument object.
|
|
From interface
sun.jvmstat.monitor.Monitor
abstract
String
|
getBaseName()
Returns the base name of this instrumentation object.
|
abstract
String
|
getName()
Returns the name of this instrumentation object.
|
abstract
Units
|
getUnits()
Returns the Units for this instrumentation monitoring object.
|
abstract
Object
|
getValue()
Return an Object that encapsulates this instrumentation object's
current data value.
|
abstract
Variability
|
getVariability()
Returns the Variability for this instrumentation object.
|
abstract
int
|
getVectorLength()
Return the length of the vector.
|
abstract
boolean
|
isSupported()
Test if the instrumentation object is supported.
|
abstract
boolean
|
isVector()
Test if the instrumentation object is a vector type.
|
|
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