rice.p2p.scribe.messaging
Class ScribeMessage

java.lang.Object
  extended byrice.p2p.scribe.messaging.ScribeMessage
All Implemented Interfaces:
Message, java.io.Serializable
Direct Known Subclasses:
AbstractSubscribeMessage, AnycastMessage, DropMessage, PublishMessage, PublishRequestMessage, UnsubscribeMessage

public abstract class ScribeMessage
extends java.lang.Object
implements Message

See Also:
Serialized Form

Field Summary
protected  NodeHandle source
           
protected  Topic topic
           
 
Constructor Summary
protected ScribeMessage(NodeHandle source, Topic topic)
          Constructor which takes a unique integer Id
 
Method Summary
 NodeHandle getSource()
          Method which returns this messages' source address
 Topic getTopic()
          Method which returns this messages' topic
 void setSource(NodeHandle source)
          Method which set this messages' source address
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

protected NodeHandle source

topic

protected Topic topic
Constructor Detail

ScribeMessage

protected ScribeMessage(NodeHandle source,
                        Topic topic)
Constructor which takes a unique integer Id

Parameters:
source - The source address
topic - The topic
Method Detail

getSource

public NodeHandle getSource()
Method which returns this messages' source address

Returns:
The source of this message

setSource

public void setSource(NodeHandle source)
Method which set this messages' source address

Parameters:
source - The source of this message

getTopic

public Topic getTopic()
Method which returns this messages' topic

Returns:
The topic of this message





Imprint-Dataprotection