public class PerfDataBuffer extends AbstractPerfDataBuffer
This class is responsible for acquiring the instrumentation buffer data for a remote target HotSpot Java Virtual Machine.
impl| Constructor and Description |
|---|
PerfDataBuffer(RemoteVm rvm,
int lvmid)
Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
sample(ByteBuffer buffer)
Get a copy of the remote instrumentation buffer.
|
createPerfDataBuffer, findByName, findByPattern, getByteBuffer, getBytes, getCapacity, getLocalVmId, getMonitorStatuspublic PerfDataBuffer(RemoteVm rvm, int lvmid) throws MonitorException
rvm - the proxy to the remote MonitredVm objectlvmid - the local Java Virtual Machine Identifier of the
remote target.MonitorExceptionpublic void sample(ByteBuffer buffer) throws RemoteException
The data in the remote instrumentation buffer is copied into the local byte buffer.
buffer - the buffer to receive the copy of the remote
instrumentation buffer.RemoteException - Thrown on any communications errors with
the remote system.Copyright © 2017–2018 earcam. All rights reserved.