public class

LocalMonitoredVm

extends AbstractMonitoredVm
java.lang.Object
   ↳ sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
     ↳ sun.jvmstat.perfdata.monitor.protocol.local.LocalMonitoredVm

Class Overview

Concrete implementation of the AbstractMonitoredVm class for the local: protocol for the HotSpot PerfData monitoring implementation.

This class provides the ability to attach to the instrumentation buffer of a live target Java Virtual Machine through a HotSpot specific attach mechanism.

Summary

[Expand]
Inherited Fields
From class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
Public Constructors
LocalMonitoredVm(VmIdentifier vmid, int interval)
Create a LocalMonitoredVm instance.
Public Methods
void addVmListener(VmListener l)
Add a VmListener. .
void detach()
Detach from target Java Virtual Machine. .
void removeVmListener(VmListener l)
Remove a VmListener. .
void setInterval(int newInterval)
Set the polling interval to interval milliseconds. .
[Expand]
Inherited Methods
From class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
From class java.lang.Object
From interface sun.jvmstat.monitor.MonitoredVm
From interface sun.jvmstat.monitor.remote.BufferedMonitoredVm

Public Constructors

public LocalMonitoredVm (VmIdentifier vmid, int interval)

Create a LocalMonitoredVm instance.

Parameters
vmid the vm identifier specifying the target JVM
interval the sampling interval

Public Methods

public void addVmListener (VmListener l)

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

Parameters
l the VmListener to add.

public void detach ()

Detach from target Java Virtual Machine. After calling this method, updates of the instrumentation data values may be halted. All event notifications are halted. Further interactions with this object should be avoided. .

public void removeVmListener (VmListener l)

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

Parameters
l the VmListener to be removed.

public void setInterval (int newInterval)

Set the polling interval to interval milliseconds. Polling based monitoring implementations need to refresh the instrumentation data on a periodic basis. This interface allows the interval to override the implementation specific default interval. .

Parameters
newInterval the polling interval in milliseconds