Modifier and Type | Field and Description |
---|---|
public static final int | DEFAULT_POLLING_INTERVAL
The default polling interval. |
Access | Constructor and Description |
---|---|
public | MonitoredHostProvider(HostIdentifier
the host identifier for this MonitoredHost hostId)Create a MonitoredHostProvider instance using the given HostIdentifier. |
Modifier and Type | Method and Description |
---|---|
public Set | activeVms()
Implements abstract sun. Return the current set of active Java Virtual Machines for this MonitoredHost. |
public void | addHostListener(HostListener
the HostListener to add. listener)Implements abstract sun. Add a HostListener. |
public void | detach(MonitoredVm
the monitored Java Virtual Machine. vm)Implements abstract sun. Detach from the indicated MonitoredVm. |
public MonitoredVm | getMonitoredVm(VmIdentifier
the VmIdentifier specifying the target Java Virtual Machine. vmid)Implements abstract sun. Get the MonitoredVm for the given Java Virtual Machine. |
public MonitoredVm | getMonitoredVm(VmIdentifier
the VmIdentifier specifying the target Java Virtual Machine. vmid, int the sampling interval for the target Java Virtual Machine. interval)Implements abstract sun. Get the MonitoredVm for the given Java Virtual Machine. |
public void | removeHostListener(HostListener
the HostListener to add. listener)Implements abstract sun. Remove a HostListener. |
DEFAULT_POLLING_INTERVAL | back to summary |
---|---|
public static final int DEFAULT_POLLING_INTERVAL The default polling interval. Not used by the file: protocol. |
MonitoredHostProvider | back to summary |
---|---|
public MonitoredHostProvider(HostIdentifier hostId) Create a MonitoredHostProvider instance using the given HostIdentifier.
|
activeVms | back to summary |
---|---|
public Set Implements abstract sun. Doc from sun. Return the current set of active Java Virtual Machines for this
MonitoredHost. The returned Set contains Note - the file: protocol currently does not support the notion of tracking active or inactive Java Virtual Machines. This method currently returns an empty set. |
addHostListener | back to summary |
---|---|
public void addHostListener(HostListener listener) Implements abstract sun. Doc from sun. Add a HostListener. The given listener is added to the list of HostListener objects to be notified of MonitoredHost related events.. Note - the file: protocol currently does not support registration or notification of event listeners. This method silently ignores the add request.
|
detach | back to summary |
---|---|
public void detach(MonitoredVm vm) Implements abstract sun. Doc from sun. Detach from the indicated MonitoredVm.
|
getMonitoredVm | back to summary |
---|---|
public MonitoredVm getMonitoredVm(VmIdentifier vmid) throws MonitorException Implements abstract sun. Doc from sun. Get the MonitoredVm for the given Java Virtual Machine. The default sampling interval is used for the MonitoredVm instance.
|
getMonitoredVm | back to summary |
---|---|
public MonitoredVm getMonitoredVm(VmIdentifier vmid, int interval) throws MonitorException Implements abstract sun. Doc from sun. Get the MonitoredVm for the given Java Virtual Machine. The sampling interval is set to the given interval..
Note - the file: protocol silently ignores the
|
removeHostListener | back to summary |
---|---|
public void removeHostListener(HostListener listener) Implements abstract sun. Doc from sun. Remove a HostListener. The given listener is removed from the list of HostListener objects to be notified of MonitoredHost related events.. Note - the file: protocol currently does not support registration or notification of event listeners. This method silently ignores the remove request.
|