Rice Pastry API

rice.pastry.socket
Class SocketCollectionManager.DeadChecker

java.lang.Object
  extended byrice.selector.TimerTask
      extended byrice.pastry.socket.SocketCollectionManager.DeadChecker
All Implemented Interfaces:
CancellableTask, java.lang.Comparable, PingResponseListener
Enclosing class:
SocketCollectionManager

protected class SocketCollectionManager.DeadChecker
extends TimerTask
implements PingResponseListener

DESCRIBE THE CLASS

Version:
$Id: SocketCollectionManager.java 3274 2006-05-15 16:17:47Z jeffh $
Author:
jeffh

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

tries

protected int tries
DESCRIBE THE FIELD


numTries

protected int numTries
DESCRIBE THE FIELD


path

protected SourceRoute path
DESCRIBE THE FIELD

Constructor Detail

SocketCollectionManager.DeadChecker

public SocketCollectionManager.DeadChecker(SourceRoute path,
                                           int numTries)
Constructor for DeadChecker.

Parameters:
numTries - DESCRIBE THE PARAMETER
path - DESCRIBE THE PARAMETER
Method Detail

pingResponse

public void pingResponse(SourceRoute path,
                         long RTT,
                         long timeHeardFrom)
DESCRIBE THE METHOD

Specified by:
pingResponse in interface PingResponseListener
Parameters:
RTT - DESCRIBE THE PARAMETER
timeHeardFrom - DESCRIBE THE PARAMETER
path - DESCRIBE THE PARAMETER

run

public 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

Specified by:
run in interface CancellableTask
Specified by:
run in class TimerTask

cancel

public boolean cancel()
DESCRIBE THE METHOD

Specified by:
cancel in interface CancellableTask
Overrides:
cancel in class TimerTask
Returns:
DESCRIBE THE RETURN VALUE

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection