|
||||||||||
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
Interface for handles to remote nodes.
Field Summary | |
protected PastryNode |
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 | |
NodeHandle()
|
Method Summary | |
void |
afterSetLocalNode()
Method that can be overridden by handle to set isLocal, etc. |
void |
assertLocalNode()
May be called from handle etc methods to ensure that local node has been set, either on construction or on deserialization/receivemsg. |
abstract boolean |
equals(java.lang.Object obj)
Equality operator for nodehandles. |
Id |
getId()
Returns this node's id. |
PastryNode |
getLocalNode()
Accessor method. |
abstract NodeId |
getNodeId()
Gets the nodeId of this Pastry node. |
abstract int |
hashCode()
Hash codes for nodehandles. |
abstract 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. |
void |
setLocalNode(PastryNode pn)
Set the local PastryNode. |
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
Constructor Detail |
public NodeHandle()
Method Detail |
public abstract NodeId getNodeId()
public Id getId()
NodeHandle
getId
in class NodeHandle
public abstract boolean isAlive()
isAlive
in class NodeHandle
public abstract int proximity()
proximity
in class NodeHandle
public abstract boolean ping()
public final void setLocalNode(PastryNode pn)
setLocalNode
in interface LocalNodeI
pn
- local pastrynodepublic void afterSetLocalNode()
public final PastryNode getLocalNode()
getLocalNode
in interface LocalNodeI
public final void assertLocalNode()
assertLocalNode
in interface LocalNodeI
public abstract boolean equals(java.lang.Object obj)
obj
- a nodehandle object
public abstract int hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |