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
| Modifier and Type | Field and Description |
|---|---|
| protected ByteBuffer | |
| pack-priv static final byte | |
| pack-priv static final byte | |
| pack-priv static final int | |
| public static final String | |
| public static final String | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| public | AbstractPerfDataBufferPrologue(ByteBuffer
buffer containing the instrumentation data byteBuffer)Construct a PerfDataBufferPrologue instance. |
| Modifier and Type | Method and Description |
|---|---|
| public ByteOrder | |
| public static ByteOrder | Returns: int - the byte order of the instrumentation bufferGet the byte order for the given ByteBuffer. |
| public int | |
| public static int | Returns: int - the magic numberGet the magic number from the given byteBuffer. |
| public int | |
| public static int | Returns: int - the major versionGet the major version number from the given ByteBuffer. |
| public int | |
| public static int | Returns: int - the minor versionGet the minor version number from the given ByteBuffer. |
| public int | Returns: int - the size of the headerGet the size of the header portion of the instrumentation buffer. |
| public abstract boolean | |
| public IntBuffer | Returns: IntBuffer - a ByteBuffer that accesses the major version number in the instrumentation buffer header.Return an IntBuffer that accesses the major version number. |
| public IntBuffer | Returns: IntBuffer - a ByteBuffer that accesses the minor version number in the instrumentation buffer header.Return an IntBuffer that accesses the minor version number. |
| public abstract boolean | Returns: boolean - the initialized flag support status.Test if the accessible flag is supported by this version of the PerfDataBufferPrologue. |
| byteBuffer | back to summary |
|---|---|
| protected ByteBuffer byteBuffer | |
| PERFDATA_BIG_ENDIAN | back to summary |
|---|---|
| pack-priv static final byte PERFDATA_BIG_ENDIAN | |
| PERFDATA_LITTLE_ENDIAN | back to summary |
|---|---|
| pack-priv static final byte PERFDATA_LITTLE_ENDIAN | |
| PERFDATA_MAGIC | back to summary |
|---|---|
| pack-priv static final int PERFDATA_MAGIC | |
| PERFDATA_MAJOR_NAME | back to summary |
|---|---|
| public static final String PERFDATA_MAJOR_NAME | |
| PERFDATA_MINOR_NAME | back to summary |
|---|---|
| public static final String PERFDATA_MINOR_NAME | |
| PERFDATA_PROLOG_BYTEORDER_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_BYTEORDER_OFFSET | |
| PERFDATA_PROLOG_BYTEORDER_SIZE | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_BYTEORDER_SIZE | |
| PERFDATA_PROLOG_MAGIC_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_MAGIC_OFFSET | |
| PERFDATA_PROLOG_MAJOR_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_MAJOR_OFFSET | |
| PERFDATA_PROLOG_MAJOR_SIZE | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_MAJOR_SIZE | |
| PERFDATA_PROLOG_MINOR_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_MINOR_OFFSET | |
| PERFDATA_PROLOG_MINOR_SIZE | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_MINOR_SIZE | |
| PERFDATA_PROLOG_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_OFFSET | |
| PERFDATA_PROLOG_RESERVEDB1_OFFSET | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_RESERVEDB1_OFFSET | |
| PERFDATA_PROLOG_RESERVEDB1_SIZE | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_RESERVEDB1_SIZE | |
| PERFDATA_PROLOG_SIZE | back to summary |
|---|---|
| pack-priv static final int PERFDATA_PROLOG_SIZE | |
| AbstractPerfDataBufferPrologue | back to summary |
|---|---|
| public AbstractPerfDataBufferPrologue(ByteBuffer byteBuffer) throws MonitorException Construct a PerfDataBufferPrologue instance.
| |
| getByteOrder | back to summary |
|---|---|
| public ByteOrder getByteOrder() Get the byte order.
| |
| getByteOrder | back to summary |
|---|---|
| public static ByteOrder getByteOrder(ByteBuffer bb) Get the byte order for the given ByteBuffer.
| |
| getMagic | back to summary |
|---|---|
| public int getMagic() Get the magic number.
| |
| getMagic | back to summary |
|---|---|
| public static int getMagic(ByteBuffer bb) Get the magic number from the given byteBuffer.
| |
| getMajorVersion | back to summary |
|---|---|
| public int getMajorVersion() Get the major version.
| |
| getMajorVersion | back to summary |
|---|---|
| public static int getMajorVersion(ByteBuffer bb) Get the major version number from the given ByteBuffer.
| |
| getMinorVersion | back to summary |
|---|---|
| public int getMinorVersion() Get the minor version.
| |
| getMinorVersion | back to summary |
|---|---|
| public static int getMinorVersion(ByteBuffer bb) Get the minor version number from the given ByteBuffer.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Get the size of the header portion of the instrumentation buffer.
| |
| isAccessible | back to summary |
|---|---|
| public abstract boolean isAccessible() Get the accessible flag. If supported, it indicates that the shared memory region is sufficiently initialized for client access.
| |
| majorVersionBuffer | back to summary |
|---|---|
| public IntBuffer majorVersionBuffer() Return an IntBuffer that accesses the major version number. This is used to create a Monitor object for this value.
| |
| minorVersionBuffer | back to summary |
|---|---|
| public IntBuffer minorVersionBuffer() Return an IntBuffer that accesses the minor version number. This is used to create a Monitor object for this value.
| |
| supportsAccessible | back to summary |
|---|---|
| public abstract 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.
| |