ca.mcgill.cs.postina.scribe
Class PostinaReliableScribeTransportMessage

java.lang.Object
  extended by ca.mcgill.cs.postina.scribe.PostinaScribeTransportMessage
      extended by ca.mcgill.cs.postina.scribe.PostinaReliableScribeTransportMessage
All Implemented Interfaces:
PostinaMessage, java.io.Serializable, rice.p2p.commonapi.Message, rice.p2p.scribe.ScribeContent

public class PostinaReliableScribeTransportMessage
extends PostinaScribeTransportMessage

A PostinaReliableScribeTransportMessage is the message actually sent over the network when reliability is required.

Version:
8-Jan-08
Author:
Dominik Zindel
See Also:
Serialized Form

Field Summary
private  MessageID messageID
          The unique identifier of the message.
private static long serialVersionUID
           
 
Fields inherited from interface rice.p2p.commonapi.Message
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
Constructor Summary
PostinaReliableScribeTransportMessage(PostinaID from, PostinaTopic topic, java.io.Serializable content)
          The constructor for a PostinaReliableScribeTransportMessage without a special priority indicated.
PostinaReliableScribeTransportMessage(PostinaID from, PostinaTopic topic, java.io.Serializable content, int priority)
          The constructor for a PostinaReliableScribeTransportMessage without a special priority.
 
Method Summary
 MessageID getMessageID()
          This method returns the unique identifier of the message.
 void setMessageID(MessageID messageID)
          This method allows to set the messageID of this message.
 
Methods inherited from class ca.mcgill.cs.postina.scribe.PostinaScribeTransportMessage
getContent, getFrom, getPriority, getTopic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

messageID

private MessageID messageID
The unique identifier of the message.

Constructor Detail

PostinaReliableScribeTransportMessage

public PostinaReliableScribeTransportMessage(PostinaID from,
                                             PostinaTopic topic,
                                             java.io.Serializable content)
The constructor for a PostinaReliableScribeTransportMessage without a special priority indicated.

Parameters:
from - The PostinaID of the sender of the message.
topic - The topic of the message that has to be sent. This is not used for direct messages.
content - The actual message that has to be sent.

PostinaReliableScribeTransportMessage

public PostinaReliableScribeTransportMessage(PostinaID from,
                                             PostinaTopic topic,
                                             java.io.Serializable content,
                                             int priority)
The constructor for a PostinaReliableScribeTransportMessage without a special priority.

Parameters:
from - The PostinaID of the sender of the message.
topic - The topic of the message that has to be sent. This is not used for direct messages.
content - The actual message that has to be sent.
priority - The integer representing the priority of the message.
Method Detail

getMessageID

public MessageID getMessageID()
This method returns the unique identifier of the message.

Returns:
The messageID of the message.

setMessageID

public void setMessageID(MessageID messageID)
This method allows to set the messageID of this message.

Parameters:
messageID - The new messageID replacing the old one.