org.objectweb.proactive.core.body.message
Class MessageImpl

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.message.MessageImpl
All Implemented Interfaces:
Message, java.io.Serializable
Direct Known Subclasses:
BodyRequest, ReplyImpl, RequestImpl

public class MessageImpl
extends java.lang.Object
implements Message, java.io.Serializable

Implements a simple message encapsulating a method call between two active objects.

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team
See Also:
Serialized Form

Field Summary
protected  boolean ciphered
           
protected  boolean isOneWay
           
protected  java.lang.String methodName
          The name of the method called
protected  long sequenceNumber
          The unique sequence number for the message
protected  long sessionID
           
protected  UniqueID sourceID
          The UniqueID of the body sending the message
protected  long timeStamp
          the time the message has been issued or deserialized
 
Constructor Summary
MessageImpl(UniqueID sourceID, long sequenceNumber, boolean isOneWay, java.lang.String methodName)
          Creates a new Message based on the given information.
 
Method Summary
 java.lang.String getMethodName()
          Returns the method name of the method call packed in this message
 long getSequenceNumber()
          Returns a unique sequence number of this message
 UniqueID getSourceBodyID()
          Returns the id of the body source of this message
 long getTimeStamp()
          Returns the time this message was created or deserialized
 boolean isOneWay()
          Returns true if the message will not generate a response message
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

methodName

protected java.lang.String methodName
The name of the method called


sourceID

protected UniqueID sourceID
The UniqueID of the body sending the message


sequenceNumber

protected long sequenceNumber
The unique sequence number for the message


timeStamp

protected transient long timeStamp
the time the message has been issued or deserialized


isOneWay

protected boolean isOneWay

sessionID

protected long sessionID

ciphered

protected boolean ciphered
Constructor Detail

MessageImpl

public MessageImpl(UniqueID sourceID,
                   long sequenceNumber,
                   boolean isOneWay,
                   java.lang.String methodName)
Creates a new Message based on the given information.

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSourceBodyID

public UniqueID getSourceBodyID()
Description copied from interface: Message
Returns the id of the body source of this message

Specified by:
getSourceBodyID in interface Message
Returns:
the id of the body source of this message

getMethodName

public java.lang.String getMethodName()
Description copied from interface: Message
Returns the method name of the method call packed in this message

Specified by:
getMethodName in interface Message
Returns:
the method name of the method call packed in this message

getSequenceNumber

public long getSequenceNumber()
Description copied from interface: Message
Returns a unique sequence number of this message

Specified by:
getSequenceNumber in interface Message
Returns:
a unique sequence number of this message

isOneWay

public boolean isOneWay()
Description copied from interface: Message
Returns true if the message will not generate a response message

Specified by:
isOneWay in interface Message
Returns:
true if the message will not generate a response message

getTimeStamp

public long getTimeStamp()
Description copied from interface: Message
Returns the time this message was created or deserialized

Specified by:
getTimeStamp in interface Message
Returns:
the time this message was created or deserialized


Copyright © April 2004 INRIA All Rights Reserved.