|
Rice Pastry API | |||||||||
| 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.PublishMessage
public class PublishMessage
| 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 | |
|---|---|
PublishMessage(NodeHandle source,
Topic topic,
RawScribeContent content)
Constructor for PublishMessage. |
|
PublishMessage(NodeHandle source,
Topic topic,
ScribeContent content)
Constructor which takes a unique integer Id |
|
| Method Summary | |
|---|---|
static PublishMessage |
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 |
void |
setContent(ScribeContent content)
Sets the Content attribute of the PublishMessage object |
java.lang.String |
toString()
Converts to a String representation of the object. |
| 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 RawScribeContent content
public static final short TYPE
| Constructor Detail |
|---|
public PublishMessage(NodeHandle source,
Topic topic,
ScribeContent content)
source - The source addresstopic - DESCRIBE THE PARAMETERcontent - DESCRIBE THE PARAMETER
public PublishMessage(NodeHandle source,
Topic topic,
RawScribeContent content)
source - DESCRIBE THE PARAMETERtopic - DESCRIBE THE PARAMETERcontent - DESCRIBE THE PARAMETER| Method Detail |
|---|
public ScribeContent getContent()
public short getType()
public void setContent(ScribeContent content)
content - The new Content valuepublic java.lang.String toString()
toString in class java.lang.Object
public void serialize(OutputBuffer buf)
throws java.io.IOException
serialize in interface RawMessageserialize in class ScribeMessagebuf - DESCRIBE THE PARAMETER
java.io.IOException - DESCRIBE THE EXCEPTION
public static PublishMessage 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 | |||||||||