public class

RemoteHostImpl

extends Object
implements HostListener RemoteHost
java.lang.Object
   ↳ sun.tools.jstatd.RemoteHostImpl

Class Overview

Concrete implementation of the RemoteHost interface for the HotSpot PerfData rmi: protocol.

This class provides remote access to the instrumentation exported by HotSpot Java Virtual Machines through the PerfData shared memory interface.

Summary

Public Constructors
RemoteHostImpl()
Public Methods
int[] activeVms()
Get a list of Local Virtual Machine Identifiers for the active Java Virtual Machine the remote system.
RemoteVm attachVm(int lvmid, 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.
void disconnected(HostEvent ev)
Invoked when the connection to the MonitoredHost has disconnected due to communication errors.
void vmStatusChanged(VmStatusChangeEvent ev)
Invoked when the status of Java Virtual Machine changes.
[Expand]
Inherited Methods
From class java.lang.Object
From interface sun.jvmstat.monitor.event.HostListener
From interface sun.jvmstat.monitor.remote.RemoteHost

Public Constructors

public RemoteHostImpl ()

Public Methods

public 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.

public RemoteVm attachVm (int lvmid, String mode)

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

Parameters
lvmid The identifier for the target virtual machine.
Returns
  • RemoteVm - A remote object for accessing the remote Java Virtual Machine.

public 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.

public void disconnected (HostEvent ev)

Invoked when the connection to the MonitoredHost has disconnected due to communication errors.

Parameters
ev the object describing the event.

public void vmStatusChanged (VmStatusChangeEvent ev)

Invoked when the status of Java Virtual Machine changes.

Parameters
ev the object describing the event.