|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsun.jvmstat.monitor.MonitoredHost
sun.jvmstat.perfdata.monitor.protocol.rmi.MonitoredHostProvider
public class MonitoredHostProvider
Concrete implementation of the MonitoredHost interface for the rmi protocol of the HotSpot PerfData monitoring implementation.
Field Summary |
---|
Fields inherited from class sun.jvmstat.monitor.MonitoredHost |
---|
hostId, interval, lastException |
Constructor Summary | |
---|---|
MonitoredHostProvider(HostIdentifier hostId)
Create a MonitoredHostProvider instance using the given HostIdentifier. |
Method Summary | |
---|---|
Set |
activeVms()
Return the current set of active Java Virtual Machines for this MonitoredHost. |
void |
addHostListener(HostListener listener)
Add a HostListener. |
void |
detach(MonitoredVm vm)
Detach from the indicated MonitoredVm. |
MonitoredVm |
getMonitoredVm(VmIdentifier vmid)
Get the MonitoredVm for the given Java Virtual Machine. |
MonitoredVm |
getMonitoredVm(VmIdentifier vmid,
int interval)
Get the MonitoredVm for the given Java Virtual Machine. |
void |
removeHostListener(HostListener listener)
Remove a HostListener. |
void |
setInterval(int newInterval)
Set the polling interval for this MonitoredHost. |
Methods inherited from class sun.jvmstat.monitor.MonitoredHost |
---|
clearLastException, getHostIdentifier, getInterval, getLastException, getMonitoredHost, getMonitoredHost, getMonitoredHost, isErrored, resolveHostId, setLastException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MonitoredHostProvider(HostIdentifier hostId) throws MonitorException
hostId
- the host identifier for this MonitoredHost
MonitorException
- Thrown on any error encountered while
communicating with the remote host.Method Detail |
---|
public MonitoredVm getMonitoredVm(VmIdentifier vmid) throws MonitorException
getMonitoredVm
in class MonitoredHost
vmid
- the VmIdentifier specifying the target Java Virtual Machine.
MonitorException
- Thrown if monitoring errors occur.public MonitoredVm getMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException
getMonitoredVm
in class MonitoredHost
vmid
- the VmIdentifier specifying the target Java Virtual Machine.interval
- the sampling interval for the target Java Virtual Machine.
MonitorException
- Thrown if monitoring errors occur.public void detach(MonitoredVm vm) throws MonitorException
detach
in class MonitoredHost
vm
- the monitored Java Virtual Machine.
MonitorException
- Thrown if monitoring errors occur.public void addHostListener(HostListener listener)
addHostListener
in class MonitoredHost
listener
- the HostListener to add.public void removeHostListener(HostListener listener)
removeHostListener
in class MonitoredHost
listener
- the HostListener to add.public void setInterval(int newInterval)
MonitoredHost
setInterval
in class MonitoredHost
newInterval
- the polling interval, in millisecondspublic Set activeVms() throws MonitorException
Integer
instances
holding the local virtual machine identifier, or lvmid
for each instrumented Java Virtual Machine currently available.
activeVms
in class MonitoredHost
MonitorException
- Thrown if monitoring errors occur.
|
Jvmstat | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |