|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
org.ourgrid.common.fd.MachinesPinger
public class MachinesPinger
Objects of this class are used to execute real pings on Grid Machines through
a MachinesPingerThread
. It is created a new thread to ping
each machine avoiding the necessity to wait for a ping to return. When the
ping returns, the Grid Machine state is updated in the Monitor
passed in the constructor.
Constructor Summary | |
---|---|
MachinesPinger(Monitor fd,
java.util.concurrent.ExecutorService threadpool)
The constructor. |
Method Summary | |
---|---|
boolean |
cancel()
|
void |
run()
This method retrieves the Grid Machines to be pinged from the FailureDetector and fires a
MachinesPingerThread for each machine. |
Methods inherited from class java.util.TimerTask |
---|
scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MachinesPinger(Monitor fd, java.util.concurrent.ExecutorService threadpool)
fd
- Object responsible for maintaining the updated states of Grid
Machines and providing machines to be pinged.threadpool
- Pool to execute pingers in.Method Detail |
---|
public void run()
FailureDetector
and fires a
MachinesPingerThread
for each machine. This thread makes
real pings on them and updates their state on the
FailureDetector
.
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
public boolean cancel()
cancel
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |