| Modifier and Type | Class and Description |
|---|---|
| private class | MonitoredHostProvider.
class to poll the remote machine and generate local event notifications. |
| Modifier and Type | Field and Description |
|---|---|
| private HashSet | |
| private static final int | |
| private ArrayList | |
| private RemoteHost | |
| private static final String | |
| private MonitoredHostProvider. | |
| private Timer | |
| private RemoteVmManager |
| 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. |
| pack-priv void | |
| private void | fireVmStatusChangedEvents(Set<Integer>
Set of Integer objects containing the local
Vm Identifiers of the active JVMs active, Set<Integer> Set of Integer objects containing the local
Vm Identifiers of new JVMs started since last
interval. started, Set<Integer> Set of Integer objects containing the local
Vm Identifiers of terminated JVMs since last
interval. terminated)Fire VmStatusChangeEvent events to HostListener objects |
| 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 | |
| remoteHost | back to summary |
|---|---|
| private RemoteHost remoteHost | |
| serverName | back to summary |
|---|---|
| private static final String serverName | |
| task | back to summary |
|---|---|
| private MonitoredHostProvider. | |
| timer | back to summary |
|---|---|
| private Timer timer | |
| vmManager | back to summary |
|---|---|
| private RemoteVmManager vmManager | |
| MonitoredHostProvider | back to summary |
|---|---|
| public MonitoredHostProvider(HostIdentifier hostId) throws MonitorException 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) throws MonitorException Implements abstract sun. Doc from sun. Detach from the indicated MonitoredVm.
| |
| fireDisconnectedEvents | back to summary |
|---|---|
| pack-priv void fireDisconnectedEvents() Fire hostDisconnectEvent events.
| |
| fireVmStatusChangedEvents | back to summary |
|---|---|
| private void fireVmStatusChangedEvents(Set<Integer> active, Set<Integer> started, Set<Integer> terminated) Fire VmStatusChangeEvent events to HostListener objects
| |
| 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. | |