|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--rice.p2p.scribe.messaging.ScribeMessage
|
+--rice.p2p.scribe.messaging.AnycastMessage
| Field Summary | |
protected rice.p2p.scribe.ScribeContent |
content
the content of this message |
protected java.util.LinkedList |
toVisit
the list of nodes which we are going to visit |
protected java.util.Vector |
visited
the list of nodes which we have visited |
| Fields inherited from class rice.p2p.scribe.messaging.ScribeMessage |
source, topic |
| Constructor Summary | |
AnycastMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
Constructor which takes a unique integer Id |
|
| Method Summary | |
void |
addFirst(rice.p2p.commonapi.NodeHandle handle)
Adds a node the the front of the to-visit list |
void |
addLast(rice.p2p.commonapi.NodeHandle handle)
Adds a node the the end of the to-visit list |
void |
addVisited(rice.p2p.commonapi.NodeHandle handle)
Adds a node to the visited list |
rice.p2p.scribe.ScribeContent |
getContent()
Returns the content |
rice.p2p.commonapi.NodeHandle |
getNext()
Returns the next handle to visit and removes the node from the list. |
rice.p2p.commonapi.NodeHandle |
peekNext()
Returns the next handle to visit |
void |
remove(rice.p2p.commonapi.NodeHandle handle)
Removes the node handle from the to visit and visited lists |
void |
setContent(rice.p2p.scribe.ScribeContent content)
Sets the content |
| Methods inherited from class rice.p2p.scribe.messaging.ScribeMessage |
getSource, getTopic, setSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected rice.p2p.scribe.ScribeContent content
protected java.util.Vector visited
protected java.util.LinkedList toVisit
| Constructor Detail |
public AnycastMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
source - The source addresstopic - The topiccontent - The content| Method Detail |
public rice.p2p.scribe.ScribeContent getContent()
public void setContent(rice.p2p.scribe.ScribeContent content)
content - The contentpublic rice.p2p.commonapi.NodeHandle peekNext()
public rice.p2p.commonapi.NodeHandle getNext()
public void addVisited(rice.p2p.commonapi.NodeHandle handle)
handle - The node to addpublic void addFirst(rice.p2p.commonapi.NodeHandle handle)
handle - The handle to addpublic void addLast(rice.p2p.commonapi.NodeHandle handle)
handle - The handle to addpublic void remove(rice.p2p.commonapi.NodeHandle handle)
handle - The handle to remove
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||