|
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.PublishRequestMessage
Field Summary | |
protected RawScribeContent |
content
DESCRIBE THE FIELD |
static short |
TYPE
DESCRIBE THE FIELD |
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 | |
PublishRequestMessage(NodeHandle source,
Topic topic,
RawScribeContent content)
Constructor for PublishRequestMessage. |
|
PublishRequestMessage(NodeHandle source,
Topic topic,
ScribeContent content)
Constructor which takes a unique integer Id |
Method Summary | |
static PublishRequestMessage |
build(InputBuffer buf,
Endpoint endpoint,
ScribeContentDeserializer scd)
DESCRIBE THE METHOD |
ScribeContent |
getContent()
Returns the content |
short |
getType()
Raw Serialization ************************************** |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
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, toString, wait, wait, wait |
Field Detail |
protected RawScribeContent content
public static final short TYPE
Constructor Detail |
public PublishRequestMessage(NodeHandle source, Topic topic, ScribeContent content)
source
- The source addresstopic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERpublic PublishRequestMessage(NodeHandle source, Topic topic, RawScribeContent content)
source
- DESCRIBE THE PARAMETERtopic
- DESCRIBE THE PARAMETERcontent
- DESCRIBE THE PARAMETERMethod Detail |
public ScribeContent getContent()
public short getType()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface RawMessage
serialize
in class ScribeMessage
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic static PublishRequestMessage build(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 |