Known Direct Subclasses
|
Class Overview
Class for monitoring a PerfData String instrument.
Summary
Public Constructors |
|
PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb)
Constructor to create a StringMonitor object for the string instrument
represented by the data in the given buffer.
|
|
PerfStringMonitor(String name, Variability v, boolean supported, ByteBuffer bb, int maxLength)
Constructor to create a StringMonitor object for the string 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 byte[] with a copy of the current
elements of the ByteArrayInstrument.
The object returned contains a String with a copy of the current
value of the StringInstrument.
|
String
|
stringValue()
Return the current value of the StringInstrument as a String.
|
[Expand]
Inherited Methods |
From class
sun.jvmstat.perfdata.monitor.PerfByteArrayMonitor
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.
|
|
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.
|
|
From interface
sun.jvmstat.monitor.StringMonitor
abstract
String
|
stringValue()
Get a copy of the current value of the StringInstrument object.
|
|
Public Constructors
public
PerfStringMonitor
(String name, Variability v, boolean supported, ByteBuffer bb)
Constructor to create a StringMonitor object for the string instrument
represented by the data in the given buffer.
Parameters
name
| the name of the string instrument |
v
| the variability attribute |
supported
| support level indicator |
bb
| the buffer containing the string instrument data.
|
public
PerfStringMonitor
(String name, Variability v, boolean supported, ByteBuffer bb, int maxLength)
Constructor to create a StringMonitor object for the string instrument
represented by the data in the given buffer.
Parameters
name
| the name of the string instrument |
v
| the variability attribute |
supported
| support level indicator |
bb
| the buffer containing the string instrument data. |
maxLength
| the maximum length of the string data.
|
Public Methods
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.
The object returned contains a String with a copy of the current
value of the StringInstrument.
Returns
- Object - a copy of the current value of the StringInstrument.
The return value is guaranteed to be of type String.
public
String
stringValue
()
Return the current value of the StringInstrument as a String.
Returns
- String - a copy of the current value of the StringInstrument.