dermi.messaging
Class DirectMessage

java.lang.Object
  extended by rice.p2p.scribe.messaging.ScribeMessage
      extended by 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
 

Field Detail

content

protected rice.p2p.scribe.ScribeContent content
Constructor Detail

DirectMessage

public DirectMessage(rice.p2p.commonapi.NodeHandle source,
                     rice.p2p.scribe.Topic topic,
                     rice.p2p.scribe.ScribeContent content)
Constructor

Parameters:
source - NodeHandle Source nodehandle
topic - Topic Group's identifier
content - ScribeContent The message content
Method Detail

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