
public abstract class AbstractPerfDataBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PerfDataBufferImpl |
impl
Reference to the concrete instance created by the
createPerfDataBuffer(java.nio.ByteBuffer, int) method. |
| Constructor and Description |
|---|
AbstractPerfDataBuffer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createPerfDataBuffer(ByteBuffer bb,
int lvmid)
Create the perfdata instrumentation buffer for the given lvmid
using the given ByteBuffer object as the source of the instrumentation
data.
|
Monitor |
findByName(String name)
Find a named Instrumentation object.
|
List<Monitor> |
findByPattern(String patternString)
Find all Instrumentation objects with names matching the given pattern.
|
ByteBuffer |
getByteBuffer()
Get the ByteBuffer containing the instrumentation data.
|
byte[] |
getBytes()
Get a copy of the raw instrumentation data.
|
int |
getCapacity()
Get the capacity of the instrumentation buffer.
|
int |
getLocalVmId()
Get the Local Java Virtual Machine Identifier, or lvmid
for the target JVM associated with this instrumentation buffer.
|
MonitorStatus |
getMonitorStatus()
Get a list of the inserted and removed monitors since last called.
|
protected PerfDataBufferImpl impl
createPerfDataBuffer(java.nio.ByteBuffer, int) method.public int getLocalVmId()
public byte[] getBytes()
public int getCapacity()
public Monitor findByName(String name) throws MonitorException
name - the name of the Instrumentation object to find.Monitor object that can be used to
monitor the the named instrumentation object, or
null if the named object doesn't exist.MonitorException - Thrown if an error occurs while communicating
with the target Java Virtual Machine.public List<Monitor> findByPattern(String patternString) throws MonitorException
List of Monitor objects such that
the name of each object matches the given pattern.patternString - a string containing a pattern as described in
Pattern.Monitor objects that can be used to
monitor the instrumentation objects whose names match
the given pattern. If no instrumentation objects have`
names matching the given pattern, then an empty List
is returned.MonitorException - Thrown if an error occurs while communicating
with the target Java Virtual Machine.Patternpublic MonitorStatus getMonitorStatus() throws MonitorException
MonitorException - Thrown if communications errors occur
while communicating with the target.public ByteBuffer getByteBuffer()
protected void createPerfDataBuffer(ByteBuffer bb, int lvmid) throws MonitorException
bb - the ByteBuffer that references the instrumentation data.lvmid - the Local Java Virtual Machine identifier for this
instrumentation buffer.MonitorExceptionCopyright © 2017–2018 earcam. All rights reserved.