dermi.messaging.pastry
Class DirectMessage

java.lang.Object
  extended by rice.p2p.scribe.messaging.ScribeMessage
      extended by dermi.messaging.pastry.DirectMessage
All Implemented Interfaces:
java.io.Serializable, rice.p2p.commonapi.Message

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

Version:
1.2
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
 
Fields inherited from interface rice.p2p.commonapi.Message
HIGH_PRIORITY, LOW_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
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
getPriority, 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