org.objectweb.proactive.core.body.reply
Class ReplyImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.body.message.MessageImpl
      extended byorg.objectweb.proactive.core.body.reply.ReplyImpl
All Implemented Interfaces:
Message, Reply, java.io.Serializable

public class ReplyImpl
extends MessageImpl
implements Reply, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  boolean ciphered
           
protected  byte[][] encryptedResult
          the encrypted result
protected  ProActiveSecurityManager psm
           
protected  FutureResult result
          The hypothetic result
protected  long sessionID
           
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ftm, ignoreIt, isOneWay, messageInfos, methodName, sequenceNumber, sourceID, timeStamp
 
Constructor Summary
ReplyImpl(UniqueID senderID, long sequenceNumber, java.lang.String methodName, FutureResult result, ProActiveSecurityManager psm)
           
ReplyImpl(UniqueID senderID, long sequenceNumber, java.lang.String methodName, FutureResult result, ProActiveSecurityManager psm, boolean isAutomaticContinuation)
           
 
Method Summary
 boolean decrypt(ProActiveSecurityManager psm)
           
 FutureResult getResult()
           
 long getSessionId()
           
 boolean isAutomaticContinuation()
           
 boolean isCiphered()
           
 int send(UniversalBody destinationBody)
          Sends this reply to the body destination
 
Methods inherited from class org.objectweb.proactive.core.body.message.MessageImpl
getFTManager, getMessageInfo, getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, ignoreIt, isOneWay, setFTManager, setIgnoreIt, setMessageInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.body.message.Message
getFTManager, getMessageInfo, getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, ignoreIt, isOneWay, setFTManager, setIgnoreIt, setMessageInfo
 

Field Detail

result

protected FutureResult result
The hypothetic result


encryptedResult

protected byte[][] encryptedResult
the encrypted result


ciphered

protected boolean ciphered

sessionID

protected long sessionID

psm

protected transient ProActiveSecurityManager psm
Constructor Detail

ReplyImpl

public ReplyImpl(UniqueID senderID,
                 long sequenceNumber,
                 java.lang.String methodName,
                 FutureResult result,
                 ProActiveSecurityManager psm)

ReplyImpl

public ReplyImpl(UniqueID senderID,
                 long sequenceNumber,
                 java.lang.String methodName,
                 FutureResult result,
                 ProActiveSecurityManager psm,
                 boolean isAutomaticContinuation)
Method Detail

getResult

public FutureResult getResult()
Specified by:
getResult in interface Reply

send

public int send(UniversalBody destinationBody)
         throws java.io.IOException
Description copied from interface: Reply
Sends this reply to the body destination

Specified by:
send in interface Reply
Parameters:
destinationBody - the body destination of this reply
Returns:
value used by fault-tolerance mechanism.
Throws:
java.io.IOException - if the reply fails to be sent

isCiphered

public boolean isCiphered()
Specified by:
isCiphered in interface Reply

decrypt

public boolean decrypt(ProActiveSecurityManager psm)
                throws RenegotiateSessionException
Specified by:
decrypt in interface Reply
Throws:
RenegotiateSessionException

getSessionId

public long getSessionId()
Specified by:
getSessionId in interface Reply

isAutomaticContinuation

public boolean isAutomaticContinuation()
Specified by:
isAutomaticContinuation in interface Reply
See Also:
Reply.isAutomaticContinuation()


Copyright 2001-2005 INRIA All Rights Reserved.