public class PerfDataBufferPrologue extends AbstractPerfDataBufferPrologue
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
byteBuffer, PERFDATA_MAJOR_NAME, PERFDATA_MINOR_NAME| Constructor and Description |
|---|
PerfDataBufferPrologue(ByteBuffer byteBuffer)
Create an instance of PerfDataBufferPrologue from the given
ByteBuffer object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getByteOrder, getByteOrder, getMagic, getMagic, getMajorVersion, getMajorVersion, getMinorVersion, getMinorVersion, majorVersionBuffer, minorVersionBufferpublic PerfDataBufferPrologue(ByteBuffer byteBuffer) throws MonitorException
byteBuffer - the buffer containing the binary header dataMonitorExceptionpublic boolean supportsAccessible()
supportsAccessible in class AbstractPerfDataBufferPrologueAbstractPerfDataBufferPrologue.isAccessible()public boolean isAccessible()
isAccessible in class AbstractPerfDataBufferPrologueAbstractPerfDataBufferPrologue.supportsAccessible()public int getUsed()
public int getBufferSize()
public int getOverflow()
public long getModificationTimeStamp()
public int getSize()
getSize in class AbstractPerfDataBufferProloguepublic IntBuffer usedBuffer()
getUsed()public IntBuffer sizeBuffer()
getBufferSize()public IntBuffer overflowBuffer()
getOverflow()public LongBuffer modificationTimeStampBuffer()
getModificationTimeStamp()Copyright © 2017–2018 earcam. All rights reserved.