|
||||||||||
| 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.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 |
|
MultiringNodeHandle(InputBuffer buf,
Endpoint endpoint)
|
|
| Method Summary | |
|---|---|
boolean |
checkLiveness()
Requests that the underlying transport layer check to ensure that the remote node is live. |
boolean |
equals(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()
Deprecated. use Node.proximity(NodeHandle) |
void |
serialize(OutputBuffer buf)
|
String |
toString()
Prints out the string |
void |
update(Observable o,
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 ringId
public MultiringNodeHandle(InputBuffer buf,
Endpoint endpoint)
throws IOException
IOException| Method Detail |
|---|
protected NodeHandle getHandle()
public Id getRingId()
public Id getId()
getId in class NodeHandlepublic boolean isAlive()
isAlive in class NodeHandlepublic int proximity()
proximity in class NodeHandle
public void update(Observable o,
Object obj)
update in interface Observero - the updated objectobj - The paramterpublic String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objecto - The object to compare to
public int hashCode()
hashCode in class Objectpublic boolean checkLiveness()
checkLiveness in class NodeHandle
public void serialize(OutputBuffer buf)
throws IOException
serialize in class NodeHandleIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||