|
||||||||||
| 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.dist.DistNodeHandle
rice.pastry.dist.DistCoalesedNodeHandle
rice.pastry.rmi.RMINodeHandle
A locally stored node handle that points to a remote RMIRemoteNodeI. Need localnode within handle for three reasons: to determine isLocal (thus alive and proximity() = 0), to set senderId in messages (used for coalescing on the other end), and to bounce messages back to self on failure.
| Field Summary | |
int |
id
|
static int |
index
|
| Fields inherited from class rice.pastry.dist.DistCoalesedNodeHandle |
alive, DEFAULT_DISTANCE, isInPool, isLocal |
| Fields inherited from class rice.pastry.dist.DistNodeHandle |
address, nodeId |
| 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 | |
RMINodeHandle(RMIRemoteNodeI rn,
NodeId nid,
java.net.InetSocketAddress address)
Constructor. |
|
RMINodeHandle(RMIRemoteNodeI rn,
NodeId nid,
PastryNode pn,
java.net.InetSocketAddress address)
Alternate constructor with local Pastry node. |
|
| Method Summary | |
void |
doPing()
Do the (blocking) ping |
void |
doSend(Message msg)
Do the actual (blocking) RMI call to the remote node |
RMIRemoteNodeI |
getRemote()
Remotenode accessor method. |
boolean |
pingImpl()
Ping the remote node now, and update the proximity metric. |
void |
receiveMessageImpl(Message msg)
Called to send a message to the node corresponding to this handle. |
void |
setRemoteNode(RMIRemoteNodeI rn)
Remotenode accessor method. |
java.lang.String |
toStringImpl()
Returns a String representation of this DistNodeHandle. |
| Methods inherited from class rice.pastry.dist.DistCoalesedNodeHandle |
addObserver, afterSetLocalNode, clearChanged, countObservers, debug, deleteObserver, deleteObservers, equals, getIsInPool, hasChanged, hashCode, isAlive, markAlive, markDead, notifyObservers, notifyObservers, ping, proximity, receiveMessage, setChanged, setIsInPool, setProximity, toString, update |
| Methods inherited from class rice.pastry.dist.DistNodeHandle |
getAddress, getNodeId |
| Methods inherited from class rice.pastry.NodeHandle |
assertLocalNode, getId, getLocalNode, setLocalNode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static transient int index
public transient int id
| Constructor Detail |
public RMINodeHandle(RMIRemoteNodeI rn,
NodeId nid,
java.net.InetSocketAddress address)
rn - pastry node for whom we're constructing a handle.nid - its node id.
public RMINodeHandle(RMIRemoteNodeI rn,
NodeId nid,
PastryNode pn,
java.net.InetSocketAddress address)
rn - pastry node for whom we're constructing a handle.nid - its node id.pn - local Pastry node.| Method Detail |
public RMIRemoteNodeI getRemote()
public void setRemoteNode(RMIRemoteNodeI rn)
rn - RMI remote reference to some Pastry node.public void receiveMessageImpl(Message msg)
receiveMessageImpl in class DistCoalesedNodeHandlemsg - Message to be delivered, may or may not be routeMessage.public void doSend(Message msg)
msg - Message to be delivered, may or may not be routeMessage.public boolean pingImpl()
pingImpl in class DistCoalesedNodeHandlepublic void doPing()
public java.lang.String toStringImpl()
DistCoalesedNodeHandle
toStringImpl in class DistCoalesedNodeHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||