|
ePOST 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 rice.p2p.multiring.MultiringNodeHandle
public class MultiringNodeHandle
Field Summary | |
---|---|
protected NodeHandle |
handle
The internal handle |
protected Id |
ringId
The handle's ringId |
Fields inherited from class rice.p2p.commonapi.NodeHandle |
---|
DECLARED_DEAD, DECLARED_LIVE, PROXIMITY_CHANGED |
Constructor Summary | |
---|---|
MultiringNodeHandle(Id ringId,
NodeHandle handle)
Constructor |
Method Summary | |
---|---|
boolean |
checkLiveness()
Requests that the underlying transport layer check to ensure that the remote node is live. |
boolean |
equals(java.lang.Object o)
Returns whether or not this object is equal to the provided one |
protected NodeHandle |
getHandle()
Returns the internal handle |
Id |
getId()
Returns this node's id. |
Id |
getRingId()
Returns the ringId of this node handle |
int |
hashCode()
Returns the hashCode |
boolean |
isAlive()
Returns whether or not this node is currently alive |
int |
proximity()
Returns the current proximity value of this node |
java.lang.String |
toString()
Prints out the string |
void |
update(java.util.Observable o,
java.lang.Object obj)
Observable callback. |
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, wait, wait, wait |
Field Detail |
---|
protected NodeHandle handle
protected Id ringId
Constructor Detail |
---|
public MultiringNodeHandle(Id ringId, NodeHandle handle)
handle
- The handle to wrapringId
- The handle's ringIdMethod Detail |
---|
protected NodeHandle getHandle()
public Id getRingId()
public Id getId()
getId
in class NodeHandle
public boolean isAlive()
isAlive
in class NodeHandle
public int proximity()
proximity
in class NodeHandle
public void update(java.util.Observable o, java.lang.Object obj)
update
in interface java.util.Observer
o
- the updated objectobj
- The paramterpublic java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The object to compare to
public int hashCode()
hashCode
in class java.lang.Object
public boolean checkLiveness()
checkLiveness
in class NodeHandle
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |