| Modifier and Type | Class and Description |
|---|---|
| private class | MonitoredHostProvider.
Class to poll the local system and generate event notifications. |
| Modifier and Type | Field and Description |
|---|---|
| private HashSet | |
| private static final int | |
| private ArrayList | |
| private MonitoredHostProvider. | |
| private LocalVmManager |
| 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 listener)
Implements abstract sun. Add a HostListener. |
| public void | detach(MonitoredVm vm)
Implements abstract sun. Detach from the indicated MonitoredVm. |
| private void | fireVmStatusChangedEvents(Set<Integer>
a set of Integer objects containing the vmid of
the active Vms active, Set<Integer> a set of Integer objects containing the vmid of
new Vms started since last interval. started, Set<Integer> a set of Integer objects containing the vmid of
terminated Vms since last interval. terminated)Fire VmEvent events. |
| public MonitoredVm | getMonitoredVm(VmIdentifier vmid)
Implements abstract sun. Get the MonitoredVm for the given Java Virtual Machine. |
| public MonitoredVm | getMonitoredVm(VmIdentifier vmid, int interval)
Implements abstract sun. Get the MonitoredVm for the given Java Virtual Machine. |
| public void | removeHostListener(HostListener listener)
Implements abstract sun. Remove a HostListener. |
| public void | setInterval(int newInterval)
Overrides sun. Set the polling interval for this MonitoredHost. |
| activeVms | back to summary |
|---|---|
| private HashSet<Integer> activeVms | |
| DEFAULT_POLLING_INTERVAL | back to summary |
|---|---|
| private static final int DEFAULT_POLLING_INTERVAL | |
| listeners | back to summary |
|---|---|
| private ArrayList<HostListener> listeners | |
| task | back to summary |
|---|---|
| private MonitoredHostProvider. | |
| vmManager | back to summary |
|---|---|
| private LocalVmManager vmManager | |
| 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 | |
| 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. | |
| detach | back to summary |
|---|---|
| public void detach(MonitoredVm vm) Implements abstract sun. Doc from sun. Detach from the indicated MonitoredVm. | |
| fireVmStatusChangedEvents | back to summary |
|---|---|
| private void fireVmStatusChangedEvents(Set<Integer> active, Set<Integer> started, Set<Integer> terminated) Fire VmEvent events.
| |
| 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.
| |
| 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. | |
| setInterval | back to summary |
|---|---|
| public void setInterval(int newInterval) Overrides sun. Doc from sun. Set the polling interval for this MonitoredHost. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | run()
Overrides sun. Implements java. The action to be performed by this timer task. |
| NotifierTask | back to summary |
|---|---|
| private NotifierTask() | |
| run | back to summary |
|---|---|
| public void run() Overrides sun. Implements java. Doc from java. The action to be performed by this timer task. | |