dermi.messaging
Class DirectMessage
java.lang.Object
rice.p2p.scribe.messaging.ScribeMessage
dermi.messaging.DirectMessage
- All Implemented Interfaces:
- rice.p2p.commonapi.Message, java.io.Serializable
- public class DirectMessage
- extends rice.p2p.scribe.messaging.ScribeMessage
This class wraps a message addressed to a unique application in a node
It is sent via a publishDirect() invocation
- Author:
- Carles Pairot
- See Also:
- Serialized Form
Field Summary |
protected rice.p2p.scribe.ScribeContent |
content
|
Fields inherited from class rice.p2p.scribe.messaging.ScribeMessage |
source, topic |
Constructor Summary |
DirectMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
Constructor |
Method Summary |
rice.p2p.scribe.ScribeContent |
getContent()
Returns the content |
java.lang.String |
toString()
|
Methods inherited from class rice.p2p.scribe.messaging.ScribeMessage |
getSource, getTopic, setSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
content
protected rice.p2p.scribe.ScribeContent content
DirectMessage
public DirectMessage(rice.p2p.commonapi.NodeHandle source,
rice.p2p.scribe.Topic topic,
rice.p2p.scribe.ScribeContent content)
- Constructor
- Parameters:
source
- NodeHandle Source nodehandletopic
- Topic Group's identifiercontent
- ScribeContent The message content
getContent
public rice.p2p.scribe.ScribeContent getContent()
- Returns the content
- Returns:
- The content
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object