| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.Observable
rice.p2p.commonapi.NodeHandle
rice.pastry.NodeHandle
rice.pastry.direct.DirectNodeHandle
the node handle used with the direct network
| Field Summary | 
| Fields inherited from class rice.pastry.NodeHandle | 
LIVENESS_ALIVE, LIVENESS_DEAD, LIVENESS_SUSPECTED, 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 | |
DirectNodeHandle(PastryNode ln,
                 PastryNode rn,
                 NetworkSimulator sim)
Constructor for DirectNodeHandle.  | 
|
| Method Summary | |
 boolean | 
equals(java.lang.Object obj)
Equivalence relation for nodehandles.  | 
 int | 
getLiveness()
Gets the Alive attribute of the DirectNodeHandle object  | 
 NodeId | 
getNodeId()
Gets the NodeId attribute of the DirectNodeHandle object  | 
 PastryNode | 
getRemote()
Gets the Remote attribute of the DirectNodeHandle object  | 
 NetworkSimulator | 
getSimulator()
Gets the Simulator attribute of the DirectNodeHandle object  | 
 int | 
hashCode()
Hash codes for node handles.It is the hashcode of their corresponding NodeId's.  | 
 void | 
notifyObservers(java.lang.Object arg)
DESCRIBE THE METHOD  | 
 boolean | 
ping()
DESCRIBE THE METHOD  | 
 int | 
proximity()
DESCRIBE THE METHOD  | 
 void | 
receiveMessage(Message msg)
DESCRIBE THE METHOD  | 
 java.lang.String | 
toString()
DESCRIBE THE METHOD  | 
| Methods inherited from class rice.pastry.NodeHandle | 
afterSetLocalNode, assertLocalNode, bootstrap, checkLiveness, getId, getLocalNode, isAlive, setLocalNode | 
| Methods inherited from class java.util.Observable | 
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, setChanged | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public DirectNodeHandle(PastryNode ln,
                        PastryNode rn,
                        NetworkSimulator sim)
ln - The local pastry nodern - The remote pastry nodesim - The current network simulator| Method Detail | 
public PastryNode getRemote()
public NodeId getNodeId()
getNodeId in class NodeHandlepublic int getLiveness()
getLiveness in class NodeHandlepublic NetworkSimulator getSimulator()
public void notifyObservers(java.lang.Object arg)
arg - DESCRIBE THE PARAMETERpublic boolean ping()
ping in class NodeHandlepublic int proximity()
proximity in class NodeHandlepublic void receiveMessage(Message msg)
msg - DESCRIBE THE PARAMETERpublic boolean equals(java.lang.Object obj)
equals in class NodeHandleobj - the other nodehandle .
public int hashCode()
hashCode in class NodeHandlepublic java.lang.String toString()
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||