|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.p2p.multiring.MultiringNodeHandleSet
public class MultiringNodeHandleSet
Field Summary | |
---|---|
protected Id |
ringId
The handle's ringId |
protected NodeHandleSet |
set
The actual node handle set |
static short |
TYPE
DESCRIBE THE FIELD |
Constructor Summary | |
---|---|
protected |
MultiringNodeHandleSet(Id ringId,
NodeHandleSet set)
Constructor |
|
MultiringNodeHandleSet(InputBuffer buf,
Endpoint endpoint)
Constructor for MultiringNodeHandleSet. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Determines equality |
NodeHandle |
getHandle(Id id)
Finds the NodeHandle associated with the NodeId. |
NodeHandle |
getHandle(int i)
Gets the ith element in the set. |
int |
getIndexHandle(Id id)
Gets the index of the element with the given node id. |
protected NodeHandleSet |
getSet()
Returns the internal set |
short |
getType()
Gets the Type attribute of the MultiringNodeHandleSet object |
int |
hashCode()
Returns the hashCode |
boolean |
memberHandle(Id id)
Verifies if the set contains this particular id. |
boolean |
putHandle(NodeHandle handle)
Puts a NodeHandle into the set. |
NodeHandle |
removeHandle(Id id)
Removes a node id and its handle from the set. |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
int |
size()
Gets the size of the set. |
java.lang.String |
toString()
Prints out the string |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected NodeHandleSet set
protected Id ringId
public static final short TYPE
Constructor Detail |
---|
protected MultiringNodeHandleSet(Id ringId, NodeHandleSet set)
ringId
- DESCRIBE THE PARAMETERset
- DESCRIBE THE PARAMETERpublic MultiringNodeHandleSet(InputBuffer buf, Endpoint endpoint) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
---|
protected NodeHandleSet getSet()
public NodeHandle getHandle(Id id)
getHandle
in interface NodeHandleSet
id
- a node id.
public NodeHandle getHandle(int i)
getHandle
in interface NodeHandleSet
i
- an index.
public int getIndexHandle(Id id) throws java.util.NoSuchElementException
getIndexHandle
in interface NodeHandleSet
id
- the id.
java.util.NoSuchElementException
- DESCRIBE THE EXCEPTIONpublic short getType()
getType
in interface NodeHandleSet
public boolean putHandle(NodeHandle handle)
putHandle
in interface NodeHandleSet
handle
- the handle to put.
public boolean memberHandle(Id id)
memberHandle
in interface NodeHandleSet
id
- a node id.
public NodeHandle removeHandle(Id id)
removeHandle
in interface NodeHandleSet
id
- DESCRIBE THE PARAMETER
public int size()
size
in interface NodeHandleSet
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the reference object with which to compare.
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface NodeHandleSet
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |