Rice Pastry API

rice.p2p.commonapi
Class NodeHandle

java.lang.Object
  |
  +--java.util.Observable
        |
        +--rice.p2p.commonapi.NodeHandle
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
NodeHandle

public abstract class NodeHandle
extends java.util.Observable
implements java.io.Serializable

Version:
$Id: NodeHandle.java,v 1.4 2003/09/24 02:20:06 amislove Exp $
Author:
Alan Mislove, Peter Druschel
See Also:
Serialized Form

Field Summary
static java.lang.Integer DECLARED_DEAD
           
static java.lang.Integer DECLARED_LIVE
           
static java.lang.Integer PROXIMITY_CHANGED
           
 
Constructor Summary
NodeHandle()
           
 
Method Summary
abstract  rice.p2p.commonapi.Id getId()
          Returns this node's id.
abstract  boolean isAlive()
          Returns whether or not this node is currently alive
abstract  int proximity()
          Returns the current proximity value of this node
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROXIMITY_CHANGED

public static final java.lang.Integer PROXIMITY_CHANGED

DECLARED_DEAD

public static final java.lang.Integer DECLARED_DEAD

DECLARED_LIVE

public static final java.lang.Integer DECLARED_LIVE
Constructor Detail

NodeHandle

public NodeHandle()
Method Detail

getId

public abstract rice.p2p.commonapi.Id getId()
Returns this node's id.

Returns:
The corresponding node's id.

isAlive

public abstract boolean isAlive()
Returns whether or not this node is currently alive

Returns:
Whether or not this node is currently alive

proximity

public abstract int proximity()
Returns the current proximity value of this node

Returns:
The current proximity value of this node

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection