uk.org.iscream.cms.server.client.monitors
Class Heartbeat__Monitor.HeartbeatWorker
java.lang.Object
java.lang.Thread
uk.org.iscream.cms.server.client.monitors.Heartbeat__Monitor.HeartbeatWorker
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- Heartbeat__Monitor
- private class Heartbeat__Monitor.HeartbeatWorker
- extends Thread
This worker thread just checks all the hosts and then
waits a period of time before doing it again. It sends
Alerts as required.
Method Summary |
private boolean |
analyseHB(String source)
Analyses a given host's state, and if need be generates
a relevant Alert. |
void |
run()
The main run method of this worker thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Heartbeat__Monitor.HeartbeatWorker
private Heartbeat__Monitor.HeartbeatWorker()
run
public void run()
- The main run method of this worker thread. It simply
checks through all the hosts it has stored, running
the analyseHB method on each. It then removes any
that have passed a FINAL, and waits a (configured)
length of time before doing it again.
analyseHB
private boolean analyseHB(String source)
- Analyses a given host's state, and if need be generates
a relevant Alert. Note that it also checks if the last
alert sent is FINAL, in which case it returns true to
indicate removal of this host.
- Parameters:
source
- the host to check
- Returns:
- whether this host can be deleted
Copyright © 2000-2003 i-scream. All Rights Reserved.