Jvmstat

sun.jvmstat.monitor.remote
Interface RemoteHost

All Superinterfaces:
Remote

public interface RemoteHost
extends Remote

Remote Interface for discovering and attaching to remote monitorable Java Virtual Machines.

Since:
1.5

Method Summary
 int[] activeVms()
          Get a list of Local Virtual Machine Identifiers for the active Java Virtual Machine the remote system.
 RemoteVm attachVm(int vmid, String mode)
          Remote method to attach to a remote HotSpot Java Virtual Machine identified by vmid.
 void detachVm(RemoteVm rvm)
          Remote method to detach from a remote HotSpot Java Virtual Machine identified by vmid.
 

Method Detail

attachVm

RemoteVm attachVm(int vmid,
                  String mode)
                  throws RemoteException,
                         MonitorException
Remote method to attach to a remote HotSpot Java Virtual Machine identified by vmid.

Parameters:
vmid - The identifier for the target virtual machine.
Returns:
RemoteVm - A remote object for accessing the remote Java Virtual Machine.
Throws:
MonitorException - Thrown when any other error is encountered while communicating with the target virtual machine.
RemoteException

detachVm

void detachVm(RemoteVm rvm)
              throws RemoteException,
                     MonitorException
Remote method to detach from a remote HotSpot Java Virtual Machine identified by vmid.

Parameters:
rvm - The remote object for the target Java Virtual Machine.
Throws:
MonitorException - Thrown when any other error is encountered while communicating with the target virtual machine.
RemoteException

activeVms

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[] - A array of lvmids.
Throws:
MonitorException - Thrown when any other error is encountered while communicating with the target virtual machine.
RemoteException

Jvmstat