public class

MonitoredHostProvider

extends MonitoredHost
java.lang.Object
   ↳ sun.jvmstat.monitor.MonitoredHost
     ↳ sun.jvmstat.perfdata.monitor.protocol.rmi.MonitoredHostProvider

Class Overview

Concrete implementation of the MonitoredHost interface for the rmi protocol of the HotSpot PerfData monitoring implementation.

Summary

[Expand]
Inherited Fields
From class sun.jvmstat.monitor.MonitoredHost
Public Constructors
MonitoredHostProvider(HostIdentifier hostId)
Create a MonitoredHostProvider instance using the given HostIdentifier.
Public Methods
Set<Integer> activeVms()
Return the current set of active Java Virtual Machines for this MonitoredHost.
void addHostListener(HostListener listener)
Add a HostListener.
void detach(MonitoredVm vm)
Detach from the indicated MonitoredVm.
MonitoredVm getMonitoredVm(VmIdentifier vmid)
Get the MonitoredVm for the given Java Virtual Machine.
MonitoredVm getMonitoredVm(VmIdentifier vmid, int interval)
Get the MonitoredVm for the given Java Virtual Machine.
void removeHostListener(HostListener listener)
Remove a HostListener.
void setInterval(int newInterval)
Set the polling interval for this MonitoredHost.
[Expand]
Inherited Methods
From class sun.jvmstat.monitor.MonitoredHost
From class java.lang.Object

Public Constructors

public MonitoredHostProvider (HostIdentifier hostId)

Create a MonitoredHostProvider instance using the given HostIdentifier.

Parameters
hostId the host identifier for this MonitoredHost
Throws
MonitorException Thrown on any error encountered while communicating with the remote host.

Public Methods

public Set<Integer> activeVms ()

Return the current set of active Java Virtual Machines for this MonitoredHost. The returned Set contains Integer instances holding the local virtual machine identifier, or lvmid for each instrumented Java Virtual Machine currently available.

Returns
  • Set - the current set of active Java Virtual Machines associated with this MonitoredHost, or the empty set of none.

public void addHostListener (HostListener listener)

Add a HostListener. The given listener is added to the list of HostListener objects to be notified of MonitoredHost related events.

Parameters
listener the HostListener to add.

public void detach (MonitoredVm vm)

Detach from the indicated MonitoredVm.

Parameters
vm the monitored Java Virtual Machine.

public MonitoredVm getMonitoredVm (VmIdentifier vmid)

Get the MonitoredVm for the given Java Virtual Machine. The default sampling interval is used for the MonitoredVm instance.

Parameters
vmid the VmIdentifier specifying the target Java Virtual Machine.
Returns
  • MonitoredVm - the MonitoredVm instance for the target Java Virtual Machine.

public MonitoredVm getMonitoredVm (VmIdentifier vmid, int interval)

Get the MonitoredVm for the given Java Virtual Machine. The sampling interval is set to the given interval.

Parameters
vmid the VmIdentifier specifying the target Java Virtual Machine.
interval the sampling interval for the target Java Virtual Machine.
Returns
  • MonitoredVm - the MonitoredVm instance for the target Java Virtual Machine.

public void removeHostListener (HostListener listener)

Remove a HostListener. The given listener is removed from the list of HostListener objects to be notified of MonitoredHost related events.

Parameters
listener the HostListener to add.

public void setInterval (int newInterval)

Set the polling interval for this MonitoredHost.

Parameters
newInterval the polling interval, in milliseconds