|
Jvmstat | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.jvmstat.perfdata.monitor.AbstractMonitoredVm
sun.jvmstat.perfdata.monitor.protocol.local.LocalMonitoredVm
public class 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.
| Field Summary |
|---|
| Fields inherited from class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm |
|---|
interval, pdb, vmid |
| Constructor Summary | |
|---|---|
LocalMonitoredVm(VmIdentifier vmid,
int interval)
Create a LocalMonitoredVm instance. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class sun.jvmstat.perfdata.monitor.AbstractMonitoredVm |
|---|
clearLastException, findByName, findByPattern, getBytes, getCapacity, getInterval, getLastException, getMonitorStatus, getVmIdentifier, isErrored, setLastException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalMonitoredVm(VmIdentifier vmid,
int interval)
throws MonitorException
vmid - the vm identifier specifying the target JVMinterval - the sampling interval
MonitorException| Method Detail |
|---|
public void detach()
detach in interface MonitoredVmdetach in class AbstractMonitoredVmpublic void addVmListener(VmListener l)
addVmListener in interface MonitoredVmaddVmListener in class AbstractMonitoredVml - the VmListener to add.public void removeVmListener(VmListener l)
removeVmListener in interface MonitoredVmremoveVmListener in class AbstractMonitoredVml - the VmListener to be removed.public void setInterval(int newInterval)
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..
setInterval in interface MonitoredVmsetInterval in class AbstractMonitoredVmnewInterval - the polling interval in milliseconds
|
Jvmstat | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||