|
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 org.mpisws.p2p.transport.commonapi.TransportLayerNodeHandle<Identifier> rice.pastry.NodeHandle<NodeRecord> rice.pastry.direct.DirectNodeHandle
public class DirectNodeHandle
the node handle used with the direct network
Field Summary | |
---|---|
NetworkSimulator |
simulator
|
Fields inherited from class rice.pastry.NodeHandle |
---|
LIVENESS_ALIVE, LIVENESS_DEAD, LIVENESS_SUSPECTED, localnode, logger |
Fields inherited from class rice.p2p.commonapi.NodeHandle |
---|
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED |
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. |
boolean |
equals(java.lang.Object obj)
Equivalence relation for nodehandles. |
NodeRecord |
getAddress()
|
long |
getEpoch()
|
int |
getLiveness()
Gets the Alive attribute of the DirectNodeHandle object |
Id |
getNodeId()
Gets the NodeId attribute of the DirectNodeHandle object |
TLPastryNode |
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()
Deprecated. |
void |
receiveMessage(Message msg)
Deprecated. use PastryNode.send() |
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
DESCRIBE THE METHOD |
void |
update(java.util.Observable arg0,
java.lang.Object arg1)
Only notify if dead. |
Methods inherited from class rice.pastry.NodeHandle |
---|
addObserver, addObserver, bootstrap, checkLiveness, countObservers, deleteObserver, deleteObservers, getId, getLocalNode, isAlive, update |
Methods inherited from class java.util.Observable |
---|
clearChanged, hasChanged, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public transient NetworkSimulator simulator
Method Detail |
---|
public TLPastryNode getRemote()
public Id getNodeId()
getNodeId
in class NodeHandle<NodeRecord>
public int getLiveness()
getLiveness
in class NodeHandle<NodeRecord>
public NetworkSimulator getSimulator()
public void notifyObservers(java.lang.Object arg)
notifyObservers
in class NodeHandle<NodeRecord>
arg
- DESCRIBE THE PARAMETERpublic boolean ping()
ping
in class NodeHandle<NodeRecord>
public final void assertLocalNode()
NodeHandle
assertLocalNode
in class NodeHandle<NodeRecord>
public int proximity()
proximity
in class NodeHandle<NodeRecord>
public void receiveMessage(Message msg)
receiveMessage
in class NodeHandle<NodeRecord>
msg
- DESCRIBE THE PARAMETERpublic boolean equals(java.lang.Object obj)
equals
in class NodeHandle<NodeRecord>
obj
- the other nodehandle .
public int hashCode()
hashCode
in class NodeHandle<NodeRecord>
public java.lang.String toString()
toString
in class java.lang.Object
public void update(java.util.Observable arg0, java.lang.Object arg1)
update
in interface java.util.Observer
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in class NodeHandle<NodeRecord>
java.io.IOException
public NodeRecord getAddress()
getAddress
in class TransportLayerNodeHandle<NodeRecord>
public long getEpoch()
getEpoch
in class TransportLayerNodeHandle<NodeRecord>
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |