|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Observable rice.p2p.commonapi.NodeHandle rice.pastry.NodeHandle
Interface for handles to remote nodes.
Field Summary | |
static int |
LIVENESS_ALIVE
DESCRIBE THE FIELD |
static int |
LIVENESS_DEAD
DESCRIBE THE FIELD |
static int |
LIVENESS_SUSPECTED
DESCRIBE THE FIELD |
protected PastryNode |
localnode
DESCRIBE THE FIELD |
protected Logger |
logger
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.commonapi.NodeHandle |
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED |
Constructor Summary | |
NodeHandle()
|
Method Summary | |
void |
assertLocalNode()
May be called from handle etc methods to ensure that local node has been set, either on construction or on deserialization/receivemsg. |
void |
bootstrap(Message msg)
Method which is used by Pastry to start the bootstrapping process on the local node using this handle as the bootstrap handle. |
boolean |
checkLiveness()
Method which FORCES a check of liveness of the remote node. |
abstract boolean |
equals(java.lang.Object obj)
Equality operator for nodehandles. |
Id |
getId()
Gets the Id attribute of the NodeHandle object |
abstract int |
getLiveness()
A more detailed version of isAlive(). |
PastryNode |
getLocalNode()
Accessor method. |
abstract NodeId |
getNodeId()
Gets the nodeId of this Pastry node. |
abstract int |
hashCode()
Hash codes for nodehandles. |
boolean |
isAlive()
Returns the last known liveness information about the Pastry node associated with this handle. |
abstract boolean |
ping()
Ping the node. |
abstract int |
proximity()
Returns the last known proximity information about the Pastry node associated with this handle. |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface rice.pastry.messaging.MessageReceiver |
receiveMessage |
Field Detail |
protected transient PastryNode localnode
protected transient Logger logger
public static final int LIVENESS_ALIVE
public static final int LIVENESS_SUSPECTED
public static final int LIVENESS_DEAD
Constructor Detail |
public NodeHandle()
Method Detail |
public abstract NodeId getNodeId()
public Id getId()
getId
in class NodeHandle
public final boolean isAlive()
isAlive
in class NodeHandle
public abstract int getLiveness()
public final PastryNode getLocalNode()
public boolean checkLiveness()
checkLiveness
in class NodeHandle
public abstract int proximity()
proximity
in class NodeHandle
public abstract boolean ping()
public final void assertLocalNode()
public abstract boolean equals(java.lang.Object obj)
obj
- a nodehandle object
public void bootstrap(Message msg)
msg
- the bootstrap message.public abstract int hashCode()
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |