This class provides the ability to attach to the instrumentation buffer of a live target Java Virtual Machine through a HotSpot specific attach mechanism.
| Modifier and Type | Class and Description |
|---|---|
| private class | LocalMonitoredVm.
Class to notify listeners of Monitor related events for the target JVM. |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | listeners
List of registered listeners. |
| private LocalMonitoredVm. | task
Task performing listener notification. |
| Access | Constructor and Description |
|---|---|
| public | LocalMonitoredVm(VmIdentifier
the vm identifier specifying the target JVM vmid, int the sampling interval interval)Create a LocalMonitoredVm instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addVmListener(VmListener l)
Implements abstract sun. Implements sun. Add a VmListener. |
| pack-priv static <T> T | |
| public void | detach()
Overrides sun. Implements sun. Detach from target Java Virtual Machine. |
| pack-priv void | fireMonitorStatusChangedEvents(List<Monitor>
List of Monitor objects inserted. inserted, List<Monitor> List of Monitor objects removed. removed)Fire MonitoredVmStructureChanged events. |
| pack-priv void | |
| public void | removeVmListener(VmListener l)
Implements abstract sun. Implements sun. Remove a VmListener. |
| public void | setInterval(int newInterval)
Overrides sun. Implements sun. Set the polling interval to |
| listeners | back to summary |
|---|---|
| private ArrayList<VmListener> listeners List of registered listeners. | |
| task | back to summary |
|---|---|
| private LocalMonitoredVm. Task performing listener notification. | |
| LocalMonitoredVm | back to summary |
|---|---|
| public LocalMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException Create a LocalMonitoredVm instance.
| |
| addVmListener | back to summary |
|---|---|
| public void addVmListener(VmListener l) Implements abstract sun. Implements sun. Doc from sun. Add a VmListener. The given listener is added to the list of VmListener objects to be notified of MonitoredVm related events.. | |
| cast | back to summary |
|---|---|
pack-priv static <T> T cast(Object x)
| |
| detach | back to summary |
|---|---|
| public void detach() Overrides sun. Implements sun. Doc from sun. 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.. | |
| fireMonitorStatusChangedEvents | back to summary |
|---|---|
| pack-priv void fireMonitorStatusChangedEvents(List<Monitor> inserted, List<Monitor> removed) Fire MonitoredVmStructureChanged events.
| |
| fireMonitorsUpdatedEvents | back to summary |
|---|---|
| pack-priv void fireMonitorsUpdatedEvents() Fire MonitoredUpdated events. | |
| removeVmListener | back to summary |
|---|---|
| public void removeVmListener(VmListener l) Implements abstract sun. Implements sun. Doc from sun. Remove a VmListener. The given listener is removed from the list of VmListener objects to be notified of MonitoredVm related events.. | |
| setInterval | back to summary |
|---|---|
| public void setInterval(int newInterval) Overrides sun. Implements sun. Doc from sun. Set the polling interval to | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides sun. Implements java. The action to be performed by this timer task. |
| NotifierTask | back to summary |
|---|---|
| private NotifierTask() | |
| run | back to summary |
|---|---|
| public void run() Overrides sun. Implements java. Doc from java. The action to be performed by this timer task. | |