APIdia Launch Partner
Top Description Methods
sun.jvmstat.monitor.remote

public Interface RemoteHost

extends Remote
Known Direct Implementers
sun.tools.jstatd.RemoteHostImpl
Imports
sun.jvmstat.monitor.*, java.rmi.Remote, .RemoteException, java.io.IOException

Remote Interface for discovering and attaching to remote monitorable Java Virtual Machines.
Author
Brian Doherty
Since
1.5

Method Summary

Modifier and TypeMethod and Description
public int[]

Returns:

int[] - A array of lvmids.
activeVms
()

Get a list of Local Virtual Machine Identifiers for the active Java Virtual Machine the remote system.

public RemoteVm

Returns:

RemoteVm - A remote object for accessing the remote Java Virtual Machine.
attachVm
(int
The identifier for the target virtual machine.
vmid
)

Remote method to attach to a remote HotSpot Java Virtual Machine identified by vmid.

public void
detachVm(RemoteVm
The remote object for the target Java Virtual Machine.
rvm
)

Remote method to detach from a remote HotSpot Java Virtual Machine identified by vmid.

Method Detail

activeVmsback to summary
public int[] activeVms() throws RemoteException, MonitorException

Get a list of Local Virtual Machine Identifiers for the active Java Virtual Machine the remote system. A Local Virtual Machine Identifier is also known as an lvmid.

Returns:int[]

int[] - A array of lvmids.

Exceptions
MonitorException:
Thrown when any other error is encountered while communicating with the target virtual machine.
attachVmback to summary
public RemoteVm attachVm(int vmid) throws RemoteException, MonitorException

Remote method to attach to a remote HotSpot Java Virtual Machine identified by vmid.

Parameters
vmid:int

The identifier for the target virtual machine.

Returns:RemoteVm

RemoteVm - A remote object for accessing the remote Java Virtual Machine.

Exceptions
MonitorException:
Thrown when any other error is encountered while communicating with the target virtual machine.
detachVmback to summary
public void detachVm(RemoteVm rvm) throws RemoteException, MonitorException

Remote method to detach from a remote HotSpot Java Virtual Machine identified by vmid.

Parameters
rvm:RemoteVm

The remote object for the target Java Virtual Machine.

Exceptions
MonitorException:
Thrown when any other error is encountered while communicating with the target virtual machine.