| 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrice.pastry.messaging.Message
This is an abstract implementation of a message object.
| Field Summary | |
static int | 
DEFAULT_PRIORITY_LEVEL
DESCRIBE THE FIELD  | 
| Constructor Summary | |
Message(Address dest)
Constructor.  | 
|
Message(Address dest,
        Credentials cred)
Constructor.  | 
|
Message(Address dest,
        Credentials cred,
        java.util.Date timestamp)
Constructor.  | 
|
Message(Address dest,
        java.util.Date timestamp)
Constructor.  | 
|
| Method Summary | |
 Credentials | 
getCredentials()
Gets the credentials of the sender.  | 
 java.util.Date | 
getDate()
Gets the timestamp of the message, if it exists.  | 
 Address | 
getDestination()
Gets the address of message receiver that the message is for.  | 
 int | 
getPriority()
Get priority  | 
 NodeHandle | 
getSender()
Get sender.  | 
 NodeId | 
getSenderId()
Get sender Id.  | 
 java.io.ObjectInputStream | 
getStream()
Get stream over which the object was deserialized.  | 
protected  void | 
setPriority(int prio)
Set priority.  | 
 void | 
setSender(NodeHandle nh)
Set sender Id.  | 
 boolean | 
stamp(java.util.Date time)
If the message has no timestamp, this will stamp the message.  | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
public static final int DEFAULT_PRIORITY_LEVEL
| Constructor Detail | 
public Message(Address dest)
dest - the destination.
public Message(Address dest,
               Credentials cred)
dest - the destination.cred - the credentials.
public Message(Address dest,
               Credentials cred,
               java.util.Date timestamp)
dest - the destination.cred - the credentials.timestamp - the timestamp
public Message(Address dest,
               java.util.Date timestamp)
dest - the destination.timestamp - the timestamp| Method Detail | 
public Address getDestination()
public Credentials getCredentials()
public java.util.Date getDate()
public NodeId getSenderId()
public NodeHandle getSender()
public int getPriority()
public java.io.ObjectInputStream getStream()
public void setSender(NodeHandle nh)
nh - The new Sender valueprotected void setPriority(int prio)
prio - The new Priority valuepublic boolean stamp(java.util.Date time)
time - the timestamp.
  | 
Rice Pastry API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||