java.lang.Object | ||
↳ | sun.jvmstat.perfdata.monitor.AbstractMonitoredVm | |
↳ | sun.jvmstat.perfdata.monitor.protocol.local.LocalMonitoredVm |
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.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
sun.jvmstat.perfdata.monitor.AbstractMonitoredVm
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a LocalMonitoredVm instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a VmListener.
.
| |||||||||||
Detach from target Java Virtual Machine.
.
| |||||||||||
Remove a VmListener.
.
| |||||||||||
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
|
Create a LocalMonitoredVm instance.
vmid | the vm identifier specifying the target JVM |
---|---|
interval | the sampling interval |
MonitorException |
---|
Add a VmListener. The given listener is added to the list of VmListener objects to be notified of MonitoredVm related events. .
l | the VmListener to add. |
---|
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. .
Remove a VmListener. The given listener is removed from the list of VmListener objects to be notified of MonitoredVm related events. .
l | the VmListener to be removed. |
---|
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.
.
newInterval | the polling interval in milliseconds |
---|