sun.jvmstat.perfdata.monitor.protocol.rmi
Class PerfDataBuffer
java.lang.Object
sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
sun.jvmstat.perfdata.monitor.protocol.rmi.PerfDataBuffer
public class PerfDataBuffer
- extends AbstractPerfDataBuffer
The concrete PerfDataBuffer implementation for the rmi:
protocol for the HotSpot PerfData monitoring implementation.
This class is responsible for acquiring the instrumentation buffer
data for a remote target HotSpot Java Virtual Machine.
- Since:
- 1.5
Constructor Summary |
PerfDataBuffer(RemoteVm rvm,
int lvmid)
Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer. |
Method Summary |
void |
sample(ByteBuffer buffer)
Get a copy of the remote instrumentation buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PerfDataBuffer
public PerfDataBuffer(RemoteVm rvm,
int lvmid)
throws MonitorException
- Create a PerfDataBuffer instance for accessing the specified
instrumentation buffer.
- Parameters:
rvm
- the proxy to the remote MonitredVm objectlvmid
- the local Java Virtual Machine Identifier of the
remote target.
- Throws:
MonitorException
sample
public void sample(ByteBuffer buffer)
throws RemoteException
- Get a copy of the remote instrumentation buffer.
The data in the remote instrumentation buffer is copied into
the local byte buffer.
- Parameters:
buffer
- the buffer to receive the copy of the remote
instrumentation buffer.
- Throws:
RemoteException
- Thrown on any communications errors with
the remote system.