|
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.pastry.NodeHandle
|
+--rice.pastry.direct.DirectNodeHandle
the node handle used with the direct network
| Field Summary |
| Fields inherited from class rice.pastry.NodeHandle |
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED |
| Fields inherited from interface rice.pastry.LocalNodeI |
pending |
| Constructor Summary | |
DirectNodeHandle(PastryNode ln,
PastryNode rn,
NetworkSimulator sim)
|
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Equivalence relation for nodehandles. |
NodeId |
getNodeId()
Gets the nodeId of this Pastry node. |
PastryNode |
getRemote()
|
NetworkSimulator |
getSimulator()
|
int |
hashCode()
Hash codes for node handles.It is the hashcode of their corresponding NodeId's. |
boolean |
isAlive()
Returns the last known liveness information about the Pastry node associated with this handle. |
boolean |
ping()
Ping the node. |
int |
proximity()
Returns the last known proximity information about the Pastry node associated with this handle. |
void |
receiveMessage(Message msg)
Passes a message along to entity which is this message receiver. |
| Methods inherited from class rice.pastry.NodeHandle |
afterSetLocalNode, assertLocalNode, getId, getLocalNode, setLocalNode |
| 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 |
| Constructor Detail |
public DirectNodeHandle(PastryNode ln,
PastryNode rn,
NetworkSimulator sim)
| Method Detail |
public PastryNode getRemote()
public NodeId getNodeId()
NodeHandle
getNodeId in class NodeHandlepublic boolean isAlive()
NodeHandle
isAlive in class NodeHandlepublic boolean ping()
NodeHandle
ping in class NodeHandlepublic int proximity()
NodeHandle
proximity in class NodeHandlepublic void receiveMessage(Message msg)
MessageReceiver
msg - the message.public NetworkSimulator getSimulator()
public boolean equals(java.lang.Object obj)
equals in class NodeHandleobj - the other nodehandle .
public int hashCode()
hashCode in class NodeHandle
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||