Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
Class for monitoring a PerfData Byte Array instrumentation object.
This class is provided to support the PerfStringMonitor classes.
Instrumentation objects of this direct type currently cannot be
created or monitored.
See Also
- sun.jvmstat.instrument.ByteArrayInstrument
Summary
Public Constructors |
|
PerfByteArrayMonitor(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength)
Constructor to create a ByteArrayMonitor for the byte array instrument
represented by the data in the given buffer.
|
Public Methods |
byte[]
|
byteArrayValue()
Get a copy of the elements of the byte array instrument.
|
byte
|
byteAt(int index)
Get the current value of an element of the byte array instrument.
|
int
|
getMaximumLength()
Get the maximum length of the byte array for this byte array instrument.
|
Object
|
getValue()
Return an Object that encapsulates this instrumentation object's
current data value.
The object returned contains a byte[] with a copy of the current
elements of the ByteArrayInstrument.
|
[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.ByteArrayMonitor
abstract
byte[]
|
byteArrayValue()
Get a copy of the current values of the elements of the
ByteArrayInstrument object.
|
abstract
byte
|
byteAt(int index)
Get the current value of an element of the ByteArrayInstrument 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
PerfByteArrayMonitor
(String name, Units u, Variability v, boolean supported, ByteBuffer bb, int vectorLength)
Constructor to create a ByteArrayMonitor for the byte array instrument
represented by the data in the given buffer.
Parameters
name
| the name of the instrumentation object |
u
| the units of measure attribute |
v
| the variability attribute |
supported
| support level indicator |
bb
| the buffer containing the byte array instrument data |
vectorLength
| the length of the vector.
|
Public Methods
public
byte[]
byteArrayValue
()
Get a copy of the elements of the byte array instrument.
Returns
- byte[] - a copy of the current value of the elements of the
byte array instrument.
public
byte
byteAt
(int index)
Get the current value of an element of the byte array instrument.
Returns
- byte - a copy of the current value of the element at index
index of the byte array instrument.
public
int
getMaximumLength
()
Get the maximum length of the byte array for this byte array instrument.
Returns
- int - the maximum length of the byte array.
public
Object
getValue
()
Return an Object that encapsulates this instrumentation object's
current data value.
The object returned contains a byte[] with a copy of the current
elements of the ByteArrayInstrument.
Returns
- Object - a copy of the current value of the elements of the
byte array instrument. The return type is guaranteed
to be of type byte[].