This class provides the ability to acquire to the instrumentation buffer of a live, remote target Java Virtual Machine through an RMI server.
| Modifier and Type | Class and Description |
|---|---|
| private class | RemoteMonitoredVm.
Class to periodically check the state of the defined monitors for the remote MonitoredVm instance and to notify listeners of any detected changes. |
| private class | RemoteMonitoredVm.
Class to periodically sample the remote instrumentation byte buffer and refresh the local copy. |
| Modifier and Type | Field and Description |
|---|---|
| private ArrayList | |
| private RemoteMonitoredVm. | |
| private RemoteVm | |
| private RemoteMonitoredVm. | |
| private Timer | |
| private ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public | RemoteMonitoredVm(RemoteVm
the proxy to the remote MonitoredVm instance. rvm, VmIdentifier the vm identifier specifying the remot target JVM vmid, Timer the timer used to run polling tasks timer, int the sampling interval interval)Create a RemoteMonitoredVm instance. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addVmListener(VmListener l)
Implements abstract sun. Implements sun. Add a VmListener. |
| public void | |
| 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 RemoteVm | Returns: RemoteVm - the proxy to the remote MonitoredVm.Get the proxy to the remote MonitoredVm. |
| public void | removeVmListener(VmListener l)
Implements abstract sun. Implements sun. Remove a VmListener. |
| public void | |
| public void | setInterval(int newInterval)
Overrides sun. Implements sun. Set the polling interval to |
| listeners | back to summary |
|---|---|
| private ArrayList<VmListener> listeners | |
| notifierTask | back to summary |
|---|---|
| private RemoteMonitoredVm. | |
| rvm | back to summary |
|---|---|
| private RemoteVm rvm | |
| samplerTask | back to summary |
|---|---|
| private RemoteMonitoredVm. | |
| timer | back to summary |
|---|---|
| private Timer timer | |
| updateBuffer | back to summary |
|---|---|
| private ByteBuffer updateBuffer | |
| RemoteMonitoredVm | back to summary |
|---|---|
| public RemoteMonitoredVm(RemoteVm rvm, VmIdentifier vmid, Timer timer, int interval) throws MonitorException Create a RemoteMonitoredVm 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. | |
| attach | back to summary |
|---|---|
| public void attach() throws MonitorException Method to attach to the remote MonitoredVm. | |
| 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 MonitoredVmStructureChanged events.
| |
| getRemoteVm | back to summary |
|---|---|
| public RemoteVm getRemoteVm() Get the proxy to the remote MonitoredVm.
| |
| 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. | |
| sample | back to summary |
|---|---|
| public void sample() throws RemoteException Get a copy of the remote instrumentation buffer. The data in the remote instrumentation buffer is copied into a local byte buffer.
| |
| 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. | |
| 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. |
| SamplerTask | back to summary |
|---|---|
| private SamplerTask() | |
| run | back to summary |
|---|---|
| public void run() Overrides sun. Implements java. Doc from java. The action to be performed by this timer task. | |