|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.selector.TimerTask rice.pastry.socket.SocketCollectionManager.DeadChecker
DESCRIBE THE CLASS
Field Summary | |
protected int |
numTries
DESCRIBE THE FIELD |
protected SourceRoute |
path
DESCRIBE THE FIELD |
protected int |
tries
DESCRIBE THE FIELD |
Fields inherited from class rice.selector.TimerTask |
cancelled, fixedRate, nextExecutionTime, period |
Constructor Summary | |
SocketCollectionManager.DeadChecker(SourceRoute path,
int numTries)
Constructor for DeadChecker. |
Method Summary | |
boolean |
cancel()
DESCRIBE THE METHOD |
void |
pingResponse(SourceRoute path,
long RTT,
long timeHeardFrom)
DESCRIBE THE METHOD |
void |
run()
Main processing method for the DeadChecker object value of tries before run() is called:the time since ping was called:the time since deadchecker was started 1:500:500 2:1000:1500 3:2000:3500 4:4000:7500 5:8000:15500 // ~15 seconds to find 1 path faulty, using source routes gives us 30 seconds to find a node faulty |
Methods inherited from class rice.selector.TimerTask |
compareTo, execute, isCancelled, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int tries
protected int numTries
protected SourceRoute path
Constructor Detail |
public SocketCollectionManager.DeadChecker(SourceRoute path, int numTries)
numTries
- DESCRIBE THE PARAMETERpath
- DESCRIBE THE PARAMETERMethod Detail |
public void pingResponse(SourceRoute path, long RTT, long timeHeardFrom)
pingResponse
in interface PingResponseListener
RTT
- DESCRIBE THE PARAMETERtimeHeardFrom
- DESCRIBE THE PARAMETERpath
- DESCRIBE THE PARAMETERpublic void run()
run
in interface CancellableTask
run
in class TimerTask
public boolean cancel()
cancel
in interface CancellableTask
cancel
in class TimerTask
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |