public interface

RemoteHost

implements Remote
sun.jvmstat.monitor.remote.RemoteHost
Known Indirect Subclasses

Class Overview

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

Summary

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

Public Methods

public abstract int[] activeVms ()

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

public abstract RemoteVm attachVm (int vmid, String mode)

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

public abstract void detachVm (RemoteVm rvm)

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