Class Overview
Class representing the 1.0 version of the HotSpot PerfData instrumentation
buffer header.
The PerfDataBufferPrologue2_0 class supports parsing of the version
specific portions of the PerfDataPrologue C structure:
typedef struct {
... // handled by superclass
jint used; // number of PerfData memory bytes used
jint overflow; // number of bytes of overflow
jlong mod_time_stamp; // time stamp of the last structural modification
} PerfDataPrologue
Summary
Public Constructors |
|
PerfDataBufferPrologue(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
|
Public Methods |
int
|
getBufferSize()
Get the size of the instrumentation memory buffer.
|
long
|
getModificationTimeStamp()
Get the time of last modification for the instrumentation
memory buffer.
|
int
|
getOverflow()
Get the buffer overflow amount.
|
int
|
getSize()
Get the size of the header portion of the instrumentation buffer.
|
int
|
getUsed()
Get the utilization of the instrumentation memory buffer.
|
boolean
|
isAccessible()
Get the accessible flag.
|
LongBuffer
|
modificationTimeStampBuffer()
Return an LongBuffer that accesses the modification timestamp value.
|
IntBuffer
|
overflowBuffer()
Return an IntBuffer that accesses the overflow value.
|
IntBuffer
|
sizeBuffer()
Return an IntBuffer that accesses the size value.
|
boolean
|
supportsAccessible()
Test if the accessible flag is supported by this version of
the PerfDataBufferPrologue.
|
IntBuffer
|
usedBuffer()
Return an IntBuffer that accesses the used value.
|
[Expand]
Inherited Methods |
From class
sun.jvmstat.perfdata.monitor.AbstractPerfDataBufferPrologue
ByteOrder
|
getByteOrder()
Get the byte order.
|
static
ByteOrder
|
getByteOrder(ByteBuffer bb)
Get the byte order for the given ByteBuffer.
|
static
int
|
getMagic(ByteBuffer bb)
Get the magic number from the given byteBuffer.
|
int
|
getMagic()
Get the magic number.
|
int
|
getMajorVersion()
Get the major version.
|
static
int
|
getMajorVersion(ByteBuffer bb)
Get the major version number from the given ByteBuffer.
|
static
int
|
getMinorVersion(ByteBuffer bb)
Get the minor version number from the given ByteBuffer.
|
int
|
getMinorVersion()
Get the minor version.
|
int
|
getSize()
Get the size of the header portion of the instrumentation buffer.
|
abstract
boolean
|
isAccessible()
Get the accessible flag.
|
IntBuffer
|
majorVersionBuffer()
Return an IntBuffer that accesses the major version number.
|
IntBuffer
|
minorVersionBuffer()
Return an IntBuffer that accesses the minor version number.
|
abstract
boolean
|
supportsAccessible()
Test if the accessible flag is supported by this version of
the PerfDataBufferPrologue.
|
|
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.
|
|
Public Constructors
public
PerfDataBufferPrologue
(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
Parameters
byteBuffer
| the buffer containing the binary header data
|
Public Methods
public
int
getBufferSize
()
Get the size of the instrumentation memory buffer.
Returns
- int - the size of the buffer
public
long
getModificationTimeStamp
()
Get the time of last modification for the instrumentation
memory buffer. This method returns the time, as ticks since the
start of the target JVM, of the last structural modification to
the instrumentation buffer. Structural modifications correspond to
the addition or deletion of instrumentation objects. Updates to
counter values are not structural modifications.
public
int
getOverflow
()
Get the buffer overflow amount. This value is non-zero if the
HotSpot JVM has overflowed the instrumentation memory buffer.
The target JVM can be restarted with -XX:PerfDataMemSize=X to
create a larger memory buffer.
Returns
- int - the size of the buffer
public
int
getSize
()
Get the size of the header portion of the instrumentation buffer.
Returns
- int - the size of the header
public
int
getUsed
()
Get the utilization of the instrumentation memory buffer.
Returns
- int - the utilization of the buffer
public
boolean
isAccessible
()
Get the accessible flag. If supported, it indicates that the shared
memory region is sufficiently initialized for client acccess.
Returns
- boolean - the initialized status
public
LongBuffer
modificationTimeStampBuffer
()
Return an LongBuffer that accesses the modification timestamp value.
This is used* to create a Monitor object for this value.
Returns
- LongBuffer - a ByteBuffer that accesses the modification time
stamp value in the instrumentation buffer header.
public
IntBuffer
overflowBuffer
()
Return an IntBuffer that accesses the overflow value. This is used
to create a Monitor object for this value.
Returns
- IntBuffer - a ByteBuffer that accesses the overflow value
in the instrumentation buffer header.
public
IntBuffer
sizeBuffer
()
Return an IntBuffer that accesses the size value. This is used
to create a Monitor object for this value.
Returns
- IntBuffer - a ByteBuffer that accesses the size value
in the instrumentation buffer header.
public
boolean
supportsAccessible
()
Test if the accessible flag is supported by this version of
the PerfDataBufferPrologue. Although not an abstract method, this
method should be overridden by version specific subclasses.
Returns
- boolean - the initialized flag support status.
public
IntBuffer
usedBuffer
()
Return an IntBuffer that accesses the used value. This is used
to create a Monitor object for this value.
Returns
- IntBuffer - a ByteBuffer that accesses the used value
in the instrumentation buffer header.