java.lang.Object | |
↳ | sun.jvmstat.perfdata.monitor.AbstractPerfDataBufferPrologue |
Known Direct Subclasses |
Abstraction representing the HotSpot PerfData instrumentation buffer header. This class represents only the fixed portion of the header. Version specific classes represent the portion of the header that may change from release to release.
The PerfDataBufferProlog class supports parsing of the following C structure:
typedef struct { jint magic; // magic number - 0xcafec0c0 jbyte byte_order; // byte order of the buffer jbyte major_version; // major and minor version numbers jbyte minor_version; jbyte reserved_byte1; // reserved - see concrete implementations for // possible definition. ... // remainder is handled by the subclasses. } PerfDataPrologue
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | PERFDATA_MAJOR_NAME | ||||||||||
String | PERFDATA_MINOR_NAME |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byteBuffer |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a PerfDataBufferPrologue instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the byte order.
| |||||||||||
Get the byte order for the given ByteBuffer.
| |||||||||||
Get the magic number from the given byteBuffer.
| |||||||||||
Get the magic number.
| |||||||||||
Get the major version.
| |||||||||||
Get the major version number from the given ByteBuffer.
| |||||||||||
Get the minor version number from the given ByteBuffer.
| |||||||||||
Get the minor version.
| |||||||||||
Get the size of the header portion of the instrumentation buffer.
| |||||||||||
Get the accessible flag.
| |||||||||||
Return an IntBuffer that accesses the major version number.
| |||||||||||
Return an IntBuffer that accesses the minor version number.
| |||||||||||
Test if the accessible flag is supported by this version of
the PerfDataBufferPrologue.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Construct a PerfDataBufferPrologue instance.
byteBuffer | buffer containing the instrumentation data |
---|
MonitorException |
---|
Get the byte order.
Get the byte order for the given ByteBuffer.
Get the magic number from the given byteBuffer.
Get the magic number.
Get the major version.
Get the major version number from the given ByteBuffer.
Get the minor version number from the given ByteBuffer.
Get the minor version.
Get the size of the header portion of the instrumentation buffer.
Get the accessible flag. If supported, it indicates that the shared memory region is sufficiently initialized for client acccess.
Return an IntBuffer that accesses the major version number. This is used to create a Monitor object for this value.
Return an IntBuffer that accesses the minor version number. This is used to create a Monitor object for this value.
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.