|
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 Id |
previousParent
The previous parent |
protected NodeHandle |
subscriber
The original subscriber |
static short |
TYPE
DESCRIBE THE FIELD |
Fields inherited from class rice.p2p.scribe.messaging.AnycastMessage |
content, toVisit, visited |
Fields inherited from class rice.p2p.scribe.messaging.ScribeMessage |
source, topic |
Fields inherited from interface rice.p2p.commonapi.Message |
HIGH_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY |
Constructor Summary | |
SubscribeMessage(NodeHandle source,
Topic topic,
Id previousParent,
int id,
RawScribeContent content)
Constructor which takes a unique integer Id |
|
SubscribeMessage(NodeHandle source,
Topic topic,
int id,
RawScribeContent content)
Constructor which takes a unique integer Id |
Method Summary | |
static SubscribeMessage |
buildSM(InputBuffer buf,
Endpoint endpoint,
ScribeContentDeserializer scd)
DESCRIBE THE METHOD |
int |
getId()
Returns this subscribe lost message's id |
Id |
getPreviousParent()
Returns the node who is trying to subscribe |
NodeHandle |
getSubscriber()
Returns the node who is trying to subscribe |
short |
getType()
Raw Serialization ************************************** |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
Returns a String represneting this message |
Methods inherited from class rice.p2p.scribe.messaging.AnycastMessage |
addFirst, addLast, addVisited, build, getContent, getNext, peekNext, remove, serializeHelper, setContent, setContent |
Methods inherited from class rice.p2p.scribe.messaging.ScribeMessage |
getPriority, getSource, getTopic, setSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected NodeHandle subscriber
protected Id previousParent
protected int id
public static final short TYPE
Constructor Detail |
public SubscribeMessage(NodeHandle source, Topic topic, int id, RawScribeContent content)
source
- The source addresstopic
- The topicid
- The UID for this messagecontent
- The contentpublic SubscribeMessage(NodeHandle source, Topic topic, Id previousParent, int id, RawScribeContent content)
source
- The source addresstopic
- The topicid
- The UID for this messagecontent
- The contentpreviousParent
- The parent on this topic who diedMethod Detail |
public NodeHandle getSubscriber()
public Id getPreviousParent()
public int getId()
public short getType()
getType
in interface RawMessage
getType
in class AnycastMessage
public java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class AnycastMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic static SubscribeMessage buildSM(InputBuffer buf, Endpoint endpoint, ScribeContentDeserializer scd) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETERscd
- 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 |