APIdia Launch Partner
Top Description Fields Constructors Methods
sun.jvmstat.perfdata.monitor.protocol.rmi

public Class PerfDataBuffer

extends AbstractPerfDataBuffer
Class Inheritance
Imports
sun.jvmstat.monitor.*, sun.jvmstat.monitor.remote.*, sun.jvmstat.perfdata.monitor.*, java.io.*, java.rmi.RemoteException, java.nio.ByteBuffer

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.

Author
Brian Doherty
Since
1.5

Field Summary

Modifier and TypeField and Description
private RemoteVm
Inherited from sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer:
impl

Constructor Summary

AccessConstructor and Description
public
PerfDataBuffer(RemoteVm
the proxy to the remote MonitredVm object
rvm
,
int
the local Java Virtual Machine Identifier of the remote target.
lvmid
)

Create a PerfDataBuffer instance for accessing the specified instrumentation buffer.

Method Summary

Modifier and TypeMethod and Description
public void
sample(ByteBuffer
the buffer to receive the copy of the remote instrumentation buffer.
buffer
)

Get a copy of the remote instrumentation buffer.

Inherited from sun.jvmstat.perfdata.monitor.AbstractPerfDataBuffer:
createPerfDataBufferfindByNamefindByPatterngetByteBuffergetBytesgetCapacitygetLocalVmIdgetMonitorStatus

Field Detail

rvmback to summary
private RemoteVm rvm

Constructor Detail

PerfDataBufferback to summary
public PerfDataBuffer(RemoteVm rvm, int lvmid) throws MonitorException

Create a PerfDataBuffer instance for accessing the specified instrumentation buffer.

Parameters
rvm:RemoteVm

the proxy to the remote MonitredVm object

lvmid:int

the local Java Virtual Machine Identifier of the remote target.

Method Detail

sampleback to summary
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:ByteBuffer

the buffer to receive the copy of the remote instrumentation buffer.

Exceptions
RemoteException:
Thrown on any communications errors with the remote system.