|
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
|
+--rice.pastry.testing.LeafSetTest.TestNodeHandle
| Field Summary |
| Fields inherited from class rice.pastry.NodeHandle |
localnode |
| Fields inherited from class rice.p2p.commonapi.NodeHandle |
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED |
| Fields inherited from interface rice.pastry.LocalNodeI |
pending |
| Constructor Summary | |
LeafSetTest.TestNodeHandle(rice.pastry.NodeId id)
|
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
boolean |
equals(java.lang.Object obj)
Equality operator for nodehandles. |
rice.pastry.NodeId |
getNodeId()
Gets the nodeId of this Pastry node. |
int |
hashCode()
Hash codes for nodehandles. |
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(rice.pastry.messaging.Message m)
Passes a message along to entity which is this message receiver. |
java.lang.String |
toString()
|
| 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, wait, wait, wait |
| Constructor Detail |
public LeafSetTest.TestNodeHandle(rice.pastry.NodeId id)
| Method Detail |
public rice.pastry.NodeId getNodeId()
NodeHandle
getNodeId in class NodeHandlepublic boolean isAlive()
NodeHandle
isAlive in class NodeHandlepublic int proximity()
NodeHandle
proximity in class NodeHandlepublic boolean ping()
NodeHandle
ping in class NodeHandlepublic boolean equals(java.lang.Object obj)
NodeHandle
equals in class NodeHandleobj - a nodehandle object
public int hashCode()
NodeHandle
hashCode in class NodeHandlepublic void receiveMessage(rice.pastry.messaging.Message m)
MessageReceiver
receiveMessage in interface MessageReceiverm - the message.public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String toString()
toString in class java.lang.Object
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||