rice.p2p.scribe.messaging
Class PublishMessage
java.lang.Object
rice.p2p.scribe.messaging.ScribeMessage
rice.p2p.scribe.messaging.PublishMessage
- All Implemented Interfaces:
- java.io.Serializable, Message, RawMessage
public class PublishMessage
- extends ScribeMessage
- Version:
- $Id: PublishMessage.java 3524 2007-01-09 14:09:27Z jeffh $
- Author:
- Alan Mislove
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final short TYPE
- See Also:
- Constant Field Values
content
protected RawScribeContent content
PublishMessage
public PublishMessage(NodeHandle source,
Topic topic,
ScribeContent content)
- Constructor which takes a unique integer Id
- Parameters:
id
- The unique idsource
- The source addressdest
- The destination address
PublishMessage
public PublishMessage(NodeHandle source,
Topic topic,
RawScribeContent content)
getContent
public ScribeContent getContent()
- Returns the content
- Returns:
- The content
setContent
public void setContent(ScribeContent content)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getType
public short getType()
- Raw Serialization
serialize
public void serialize(OutputBuffer buf)
throws java.io.IOException
- Specified by:
serialize
in interface RawMessage
- Overrides:
serialize
in class ScribeMessage
- Throws:
java.io.IOException
build
public static PublishMessage build(InputBuffer buf,
Endpoint endpoint,
ScribeContentDeserializer scd)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2001-2005 - Rice Pastry.