|
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
|
+--rice.p2p.scribe.messaging.SubscribeMessage
| Field Summary | |
protected int |
id
The id of this message |
protected rice.p2p.commonapi.Id |
previousParent
The previous parent |
protected rice.p2p.commonapi.NodeHandle |
subscriber
The original subscriber |
| Fields inherited from class rice.p2p.scribe.messaging.AnycastMessage |
content, toVisit, visited |
| Fields inherited from class rice.p2p.scribe.messaging.ScribeMessage |
source, topic |
| Constructor Summary | |
SubscribeMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.commonapi.Id previousParent,
int id,
rice.p2p.scribe.ScribeContent content)
Constructor which takes a unique integer Id |
|
SubscribeMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
int id,
rice.p2p.scribe.ScribeContent content)
Constructor which takes a unique integer Id |
|
| Method Summary | |
int |
getId()
Returns this subscribe lost message's id |
rice.p2p.commonapi.Id |
getPreviousParent()
Returns the node who is trying to subscribe |
rice.p2p.commonapi.NodeHandle |
getSubscriber()
Returns the node who is trying to subscribe |
java.lang.String |
toString()
Returns a String represneting this message |
| Methods inherited from class rice.p2p.scribe.messaging.AnycastMessage |
addFirst, addLast, addVisited, getContent, getNext, peekNext, remove, setContent |
| 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, wait, wait, wait |
| Field Detail |
protected rice.p2p.commonapi.NodeHandle subscriber
protected rice.p2p.commonapi.Id previousParent
protected int id
| Constructor Detail |
public SubscribeMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
int id,
rice.p2p.scribe.ScribeContent content)
source - The source addresstopic - The topicid - The UID for this messagecontent - The content
public SubscribeMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.commonapi.Id previousParent,
int id,
rice.p2p.scribe.ScribeContent content)
source - The source addresstopic - The topicid - The UID for this messagecontent - The contentpreviousParent - The parent on this topic who died| Method Detail |
public rice.p2p.commonapi.NodeHandle getSubscriber()
public rice.p2p.commonapi.Id getPreviousParent()
public int getId()
public java.lang.String toString()
toString in class java.lang.Object
|
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||