|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.scribe.messaging.ScribeMessage
rice.p2p.scribe.messaging.AnycastMessage
| Field Summary | |
protected 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(NodeHandle source,
Topic topic,
ScribeContent content)
Constructor which takes a unique integer Id |
|
| Method Summary | |
void |
addFirst(NodeHandle handle)
Adds a node the the front of the to-visit list |
void |
addLast(NodeHandle handle)
Adds a node the the end of the to-visit list |
void |
addVisited(NodeHandle handle)
Adds a node to the visited list |
ScribeContent |
getContent()
Returns the content |
NodeHandle |
getNext()
Returns the next handle to visit and removes the node from the list. |
NodeHandle |
peekNext()
Returns the next handle to visit |
void |
remove(NodeHandle handle)
Removes the node handle from the to visit and visited lists |
void |
setContent(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 ScribeContent content
protected java.util.Vector visited
protected java.util.LinkedList toVisit
| Constructor Detail |
public AnycastMessage(NodeHandle source,
Topic topic,
ScribeContent content)
source - The source addresstopic - The topiccontent - The content| Method Detail |
public ScribeContent getContent()
public void setContent(ScribeContent content)
content - The contentpublic NodeHandle peekNext()
public NodeHandle getNext()
public void addVisited(NodeHandle handle)
handle - The node to addpublic void addFirst(NodeHandle handle)
handle - The handle to addpublic void addLast(NodeHandle handle)
handle - The handle to addpublic void remove(NodeHandle handle)
handle - The handle to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||