|
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.socket.TransportLayerNodeHandle<Identifier>
rice.pastry.dist.DistNodeHandle<MultiInetSocketAddress>
rice.pastry.socket.SocketNodeHandle
public class SocketNodeHandle
| Field Summary | |
|---|---|
MultiInetSocketAddress |
eaddress
|
protected long |
epoch
|
| Fields inherited from class rice.pastry.dist.DistNodeHandle |
|---|
nodeId |
| 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 |
| Constructor Summary | |
|---|---|
protected |
SocketNodeHandle(MultiInetSocketAddress eisa,
long epoch,
Id id,
PastryNode node)
|
| Method Summary | |
|---|---|
boolean |
checkLiveness()
Method which FORCES a check of liveness of the remote node. |
boolean |
equals(java.lang.Object obj)
Equivalence relation for nodehandles. |
MultiInetSocketAddress |
getAddress()
Returns the InetSocketAddress that should be used to contact the node |
long |
getEpoch()
|
MultiInetSocketAddress |
getIdentifier()
|
java.net.InetSocketAddress |
getInetSocketAddress()
|
int |
getLiveness()
Returns the last known liveness information about the Pastry node associated with this handle. |
int |
hashCode()
Hash codes for node handles. |
boolean |
isLocal()
Method which returns whether or not this node handle is on its home node. |
boolean |
ping()
Ping the node. |
int |
proximity()
Deprecated. use PastryNode.proximity(nh) |
void |
receiveMessage(Message msg)
Deprecated. use PastryNode.send(msg, nh) |
void |
serialize(OutputBuffer buf)
|
void |
setLocalNode(PastryNode pn)
|
java.lang.String |
toString()
Returns a String representation of this DistNodeHandle. |
java.lang.String |
toStringFull()
|
void |
update(java.util.Observable o,
java.lang.Object obj)
DESCRIBE THE METHOD |
| Methods inherited from class rice.pastry.dist.DistNodeHandle |
|---|
getNodeId |
| Methods inherited from class rice.pastry.NodeHandle |
|---|
addObserver, addObserver, assertLocalNode, bootstrap, countObservers, deleteObserver, deleteObservers, getId, getLocalNode, isAlive, notifyObservers, 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 MultiInetSocketAddress eaddress
protected long epoch
| Constructor Detail |
|---|
protected SocketNodeHandle(MultiInetSocketAddress eisa,
long epoch,
Id id,
PastryNode node)
| Method Detail |
|---|
public long getEpoch()
getEpoch in class TransportLayerNodeHandle<MultiInetSocketAddress>public void setLocalNode(PastryNode pn)
public MultiInetSocketAddress getIdentifier()
public int getLiveness()
getLiveness in class NodeHandlepublic MultiInetSocketAddress getAddress()
getAddress in class TransportLayerNodeHandle<MultiInetSocketAddress>addressList - The sorted list of address alieses. From Internet to LAN
public java.net.InetSocketAddress getInetSocketAddress()
getInetSocketAddress in class DistNodeHandle<MultiInetSocketAddress>public boolean checkLiveness()
checkLiveness in class NodeHandlepublic boolean isLocal()
public void receiveMessage(Message msg)
receiveMessage in class NodeHandlemsg - Message to be delivered, may or may not be routeMessage.public java.lang.String toString()
toString in class DistNodeHandle<MultiInetSocketAddress>public java.lang.String toStringFull()
public boolean equals(java.lang.Object obj)
equals in class DistNodeHandle<MultiInetSocketAddress>obj - the other nodehandle .
public int hashCode()
hashCode in class DistNodeHandle<MultiInetSocketAddress>public int proximity()
proximity in class NodeHandlepublic boolean ping()
ping in class NodeHandle
public void update(java.util.Observable o,
java.lang.Object obj)
o - DESCRIBE THE PARAMETERobj - DESCRIBE THE PARAMETER
public void serialize(OutputBuffer buf)
throws java.io.IOException
serialize in interface RawSerializableserialize in class NodeHandlejava.io.IOException
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||