ePOST API

rice.pastry.socket
Class SocketCollectionManager.DeadChecker

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

protected class SocketCollectionManager.DeadChecker
extends TimerTask
implements PingResponseListener

DESCRIBE THE CLASS

Version:
$Id: SocketCollectionManager.java 3150 2006-03-16 22:17:25Z jeffh $
Author:
jeffh

Field Summary
protected  int numTries
           
protected  SourceRoute path
           
protected  int tries
           
 
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()
           
 void pingResponse(SourceRoute path, long RTT, long timeHeardFrom)
          DESCRIBE THE METHOD
 void run()
          Main processing method for the DeadChecker 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, toString, wait, wait, wait
 

Field Detail

tries

protected int tries

numTries

protected int numTries

path

protected SourceRoute path
Constructor Detail

SocketCollectionManager.DeadChecker

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

Parameters:
address - DESCRIBE THE PARAMETER
numTries - DESCRIBE THE PARAMETER
mgr - 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:
address - DESCRIBE THE PARAMETER
RTT - DESCRIBE THE PARAMETER
timeHeardFrom - DESCRIBE THE PARAMETER

run

public void run()
Main processing method for the DeadChecker object

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

cancel

public boolean cancel()
Specified by:
cancel in interface CancellableTask
Overrides:
cancel in class TimerTask
Returns:
true if it was cancelled, false if it was already complete, or cancelled.

ePOST API

Copyright © 2001-2005 - Rice Pastry.