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,v 1.59 2005/08/12 14:30:42 jeffh Exp $
Author:
jeffh

Field Summary
protected  int numTries
          DESCRIBE THE FIELD
protected  SourceRoute path
          DESCRIBE THE FIELD
protected  int tries
          DESCRIBE THE FIELD
 
Constructor Summary
SocketCollectionManager.DeadChecker(SourceRoute path, int numTries)
          Constructor for DeadChecker.
 
Method Summary
 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
cancel, compareTo, 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

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

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection