Jvmstat

sun.jvmstat.perfdata.monitor.protocol.rmi
Class PerfDataBuffer

java.lang.Object
  extended by sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
      extended by 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

Field Summary
 
Fields inherited from class sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
impl
 
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 sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer
createPerfDataBuffer, findByName, findByPattern, getByteBuffer, getBytes, getCapacity, getLocalVmId, getMonitorStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 object
lvmid - the local Java Virtual Machine Identifier of the remote target.
Throws:
MonitorException
Method Detail

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.

Jvmstat