|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.selector.TimerTask
rice.pastry.socket.SocketCollectionManager.DeadChecker
protected class 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, seq |
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 |
java.lang.String |
toString()
Converts to a String representation of the object. |
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, wait, wait, wait |
Field Detail |
---|
protected int tries
protected int numTries
protected SourceRoute path
Constructor Detail |
---|
public SocketCollectionManager.DeadChecker(SourceRoute path, int numTries)
path
- DESCRIBE THE PARAMETERnumTries
- DESCRIBE THE PARAMETERMethod Detail |
---|
public void pingResponse(SourceRoute path, long RTT, long timeHeardFrom)
pingResponse
in interface PingResponseListener
path
- DESCRIBE THE PARAMETERRTT
- DESCRIBE THE PARAMETERtimeHeardFrom
- DESCRIBE THE PARAMETERpublic void run()
run
in interface CancellableTask
run
in class TimerTask
public boolean cancel()
cancel
in interface CancellableTask
cancel
in class TimerTask
public java.lang.String toString()
toString
in class java.lang.Object
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |