| Modifier and Type | Field and Description |
|---|---|
| protected int | interval
The sampling interval, if the instrumentation buffer is acquired by sampling instead of shared memory mechanisms. |
| protected AbstractPerfDataBuffer | pdb
The shared memory instrumentation buffer for the target. |
| protected VmIdentifier | vmid
The VmIdentifier for the target. |
| Access | Constructor and Description |
|---|---|
| public | AbstractMonitoredVm(VmIdentifier
the VmIdentifier for the target vmid, int the initial sampling interval interval)Create an AbstractMonitoredVm instance. |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | addVmListener(VmListener l)
Redeclares sun. Add a VmListener. |
| public void | clearLastException()
Implements sun. Clear the last exception. |
| public void | |
| public Monitor | findByName(String name)
Implements sun. Find a named Instrumentation object. |
| public List | findByPattern(String patternString)
Implements sun. Find all Instrumentation objects with names matching the given pattern. |
| public byte[] | getBytes()
Implements sun. Interface to get the bytes associated with the instrumentation for the target Java Virtual Machine. |
| public int | getCapacity()
Implements sun. Interface to get the size of the instrumentation buffer for the target Java Virtual Machine. |
| public int | |
| public Exception | getLastException()
Implements sun. Get the last exception encountered while polling this MonitoredVm. |
| public MonitorStatus | Returns: MonitorStatus - the status of available Monitors for the target Java Virtual Machine.Get a list of the inserted and removed monitors since last called. |
| public VmIdentifier | getVmIdentifier()
Implements sun. Get the VmIdentifier associated with this MonitoredVm |
| public boolean | isErrored()
Implements sun. Test if this MonitoredVm is in the errored state. |
| public abstract void | removeVmListener(VmListener l)
Redeclares sun. Remove a VmListener. |
| public void | setInterval(int interval)
Implements sun. Set the polling interval to |
| public void | setLastException(Exception e)
Implements sun. Set the last exception encountered while polling this MonitoredVm. |
| interval | back to summary |
|---|---|
| protected int interval The sampling interval, if the instrumentation buffer is acquired by sampling instead of shared memory mechanisms. | |
| pdb | back to summary |
|---|---|
| protected AbstractPerfDataBuffer pdb The shared memory instrumentation buffer for the target. | |
| vmid | back to summary |
|---|---|
| protected VmIdentifier vmid The VmIdentifier for the target. | |
| AbstractMonitoredVm | back to summary |
|---|---|
| public AbstractMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException Create an AbstractMonitoredVm instance.
| |
| addVmListener | back to summary |
|---|---|
| public abstract void addVmListener(VmListener l) Redeclares 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. | |
| clearLastException | back to summary |
|---|---|
| public void clearLastException() Implements sun. Doc from sun. Clear the last exception. Calling this method will clear the errored state of this MonitoredVm. However, there is no guarantee that clearing the the errored state return the asynchronous polling task to an operational state. | |
| detach | back to summary |
|---|---|
| public void detach() 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. | |
| findByName | back to summary |
|---|---|
| public Monitor findByName(String name) throws MonitorException Implements sun. Doc from sun. Find a named Instrumentation object.
This method will look for the named instrumentation object in the
instrumentation exported by this Java Virtual Machine. If an
instrumentation object with the given name exists, a Monitor interface
to that object will be return. Otherwise, the method returns
| |
| findByPattern | back to summary |
|---|---|
| public List Implements sun. Doc from sun. Find all Instrumentation objects with names matching the given pattern.
This method returns a
| |
| getBytes | back to summary |
|---|---|
| public byte[] getBytes() Implements sun. Doc from sun. Interface to get the bytes associated with the instrumentation for the target Java Virtual Machine. | |
| getCapacity | back to summary |
|---|---|
| public int getCapacity() Implements sun. Doc from sun. Interface to get the size of the instrumentation buffer for the target Java Virtual Machine. | |
| getInterval | back to summary |
|---|---|
| public int getInterval() Implements sun. Doc from sun. Get the polling interval. | |
| getLastException | back to summary |
|---|---|
| public Exception getLastException() Implements sun. Doc from sun. Get the last exception encountered while polling this MonitoredVm.
Returns the last exception observed by the implementation dependent
polling task or | |
| getMonitorStatus | back to summary |
|---|---|
| public MonitorStatus getMonitorStatus() throws MonitorException Get a list of the inserted and removed monitors since last called.
| |
| getVmIdentifier | back to summary |
|---|---|
| public VmIdentifier getVmIdentifier() Implements sun. Doc from sun. Get the VmIdentifier associated with this MonitoredVm | |
| isErrored | back to summary |
|---|---|
| public boolean isErrored() Implements sun. Doc from sun. Test if this MonitoredVm is in the errored state.
The errored state exists only if an error was reported with
call to | |
| removeVmListener | back to summary |
|---|---|
| public abstract void removeVmListener(VmListener l) Redeclares 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 interval) Implements sun. Doc from sun. Set the polling interval to | |
| setLastException | back to summary |
|---|---|
| public void setLastException(Exception e) Implements sun. Doc from sun. Set the last exception encountered while polling this MonitoredVm. Polling implementations may choose to poll asynchronously. This method allows an asynchronous task to communicate any polling related exceptions with the application. When a non-null exception is reported through this interface, the MonitoredVm instance is considered to be in the errored state. | |