
public class LocalMonitoredVm extends AbstractMonitoredVm
This class provides the ability to attach to the instrumentation buffer of a live target Java Virtual Machine through a HotSpot specific attach mechanism.
interval, pdb, vmid| Constructor and Description |
|---|
LocalMonitoredVm(VmIdentifier vmid,
int interval)
Create a LocalMonitoredVm instance.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
clearLastException, findByName, findByPattern, getBytes, getCapacity, getInterval, getLastException, getMonitorStatus, getVmIdentifier, isErrored, setLastExceptionpublic LocalMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException
vmid - the vm identifier specifying the target JVMinterval - the sampling intervalMonitorExceptionpublic 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 millisecondsCopyright © 2017–2018 earcam. All rights reserved.