|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.proactive.core.body.message.MessageImpl
Implements a simple message encapsulating a method call between two active objects.
Field Summary | |
protected boolean |
ciphered
|
protected FTManager |
ftm
ftmanager linked to this message |
protected boolean |
ignoreIt
true if this message can be ignored |
protected boolean |
isOneWay
|
protected char[] |
messageInfos
all values piggybacked for fault tolerance stuff |
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 | |
FTManager |
getFTManager()
Return the FTManager that have to treat this message |
char[] |
getMessageInfo()
Returns fault-tolerance infos piggybacked on this message |
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 |
ignoreIt()
Return true if this message must be ignored by the receiver |
boolean |
isOneWay()
Returns true if the message will not generate a response message |
void |
setFTManager(FTManager ft)
Set the FTManager that have to treat this message |
void |
setIgnoreIt(boolean ignore)
Set or unset the ignore tag. |
void |
setMessageInfo(char[] mi)
Set fault-tolerance infos piggybacked on this message |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String methodName
protected UniqueID sourceID
protected long sequenceNumber
protected transient long timeStamp
protected boolean isOneWay
protected long sessionID
protected boolean ciphered
protected char[] messageInfos
protected boolean ignoreIt
protected transient FTManager ftm
Constructor Detail |
public MessageImpl(UniqueID sourceID, long sequenceNumber, boolean isOneWay, java.lang.String methodName)
sourceID
- the id of the sender of this messagesequenceNumber
- the unique sequence number of this messageisOneWay
- true
if oneWaymethodName
- the method name of the method callMethod Detail |
public java.lang.String toString()
public UniqueID getSourceBodyID()
Message
getSourceBodyID
in interface Message
public java.lang.String getMethodName()
Message
getMethodName
in interface Message
public long getSequenceNumber()
Message
getSequenceNumber
in interface Message
public boolean isOneWay()
Message
isOneWay
in interface Message
public long getTimeStamp()
Message
getTimeStamp
in interface Message
public char[] getMessageInfo()
Message
getMessageInfo
in interface Message
public void setMessageInfo(char[] mi)
Message
setMessageInfo
in interface Message
mi
- an array of chars that contains fault-tolerance infospublic boolean ignoreIt()
Message
ignoreIt
in interface Message
public void setIgnoreIt(boolean ignore)
Message
setIgnoreIt
in interface Message
ignore
- true if this request must be ignored, false otherwise.public void setFTManager(FTManager ft)
Message
setFTManager
in interface Message
ft
- the FTManager that have to treat this messagepublic FTManager getFTManager()
Message
getFTManager
in interface Message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |