Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.socket
Class SocketCollectionManager.DeadChecker

    java.lang.Object
      rice.selector.TimerTask
          rice.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 2870 2005-12-21 15:07:14Z 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

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

  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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.