|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class implementing this interface is an object encapsulating a reified method call. Any method call on an active object ends up as a Request sent to its associated body. The request must implements this Request interface.
In addition to the standard messaging facilities (sender, receiver) it adds the concepts of method call and forwarding, which is, the ability for a request to pass on from one body to another in case of migration.
Method Summary | |
boolean |
decrypt(ProActiveSecurityManager psm)
|
MethodCall |
getMethodCall()
Returns the MethodCall embedded in the request |
java.lang.Object |
getParameter(int index)
Returns the parameter number index from the method call
embedded in the request |
UniversalBody |
getSender()
Returns the sender of this request |
long |
getSessionId()
|
boolean |
hasBeenForwarded()
Returns true if the request has been forwarded |
boolean |
isCiphered()
|
void |
notifyReception(UniversalBody bodyReceiver)
Notifies the request that it has been received by the destination. |
void |
send(UniversalBody destinationBody)
Sends this request to the body destination |
Reply |
serve(Body targetBody)
Serves this request by executing the embedded method call using the given targetBody . |
Methods inherited from interface org.objectweb.proactive.core.body.message.Message |
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, isOneWay |
Method Detail |
public boolean hasBeenForwarded()
public java.lang.Object getParameter(int index)
index
from the method call
embedded in the request
index
- the position of the parameter to return.
public MethodCall getMethodCall()
public UniversalBody getSender()
public void send(UniversalBody destinationBody) throws java.io.IOException, RenegotiateSessionException
destinationBody
- the body destination of this request
java.io.IOException
- if the request fails to be sent
RenegotiateSessionException
public Reply serve(Body targetBody) throws ServeException
targetBody
. Once the eventual result obtained from the method call
a the reply is returned (based on that result).
targetBody
- the body destination of the call
ServeException
- if the method call fails to be servedpublic void notifyReception(UniversalBody bodyReceiver) throws java.io.IOException
bodyReceiver
- the body destination that received the request
java.io.IOException
- if the request failed to perform a possible
operation upon that notificationpublic boolean isCiphered()
public long getSessionId()
public boolean decrypt(ProActiveSecurityManager psm) throws RenegotiateSessionException
RenegotiateSessionException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |