|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NodeHandleSet
| Method Summary | |
|---|---|
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. |
short |
getType()
|
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)
|
int |
size()
Gets the size of the set. |
| Method Detail |
|---|
boolean putHandle(NodeHandle handle)
handle - the handle to put.
NodeHandle getHandle(Id id)
id - a node id.
NodeHandle getHandle(int i)
i - an index.
boolean memberHandle(Id id)
id - a node id.
NodeHandle removeHandle(Id id)
nid - the node to remove.
int size()
int getIndexHandle(Id id)
throws java.util.NoSuchElementException
id - the id.
java.util.NoSuchElementException
void serialize(OutputBuffer buf)
throws java.io.IOException
java.io.IOExceptionshort getType()
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||