|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.body.message.MessageImpl | +--org.objectweb.proactive.core.body.request.BodyRequest
Field Summary | |
protected boolean |
isPriority
|
protected MethodCall |
methodCall
|
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl |
ciphered, isOneWay, methodName, sequenceNumber, sessionID, sourceID, timeStamp |
Constructor Summary | |
BodyRequest(Body targetBody,
java.lang.String methodName,
java.lang.Class[] paramClasses,
java.lang.Object[] params,
boolean isPriority)
|
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()
|
boolean |
isOneWay()
Returns true if the message will not generate a response message |
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 . |
protected void |
serveInternal(Body targetBody)
|
Methods inherited from class org.objectweb.proactive.core.body.message.MessageImpl |
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, 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 |
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp |
Field Detail |
protected MethodCall methodCall
protected boolean isPriority
Constructor Detail |
public BodyRequest(Body targetBody, java.lang.String methodName, java.lang.Class[] paramClasses, java.lang.Object[] params, boolean isPriority) throws java.lang.NoSuchMethodException
Method Detail |
public boolean isCiphered()
isCiphered
in interface Request
public boolean decrypt(ProActiveSecurityManager psm)
decrypt
in interface Request
public long getSessionId()
getSessionId
in interface Request
public void send(UniversalBody destinationBody) throws java.io.IOException
Request
send
in interface Request
destinationBody
- the body destination of this request
java.io.IOException
- if the request fails to be sentpublic Reply serve(Body targetBody) throws ServeException
Request
targetBody
. Once the eventual result obtained from the method call
a the reply is returned (based on that result).
serve
in interface Request
targetBody
- the body destination of the call
ServeException
- if the method call fails to be servedpublic boolean isOneWay()
Message
isOneWay
in interface Message
isOneWay
in class MessageImpl
public boolean hasBeenForwarded()
Request
hasBeenForwarded
in interface Request
public UniversalBody getSender()
Request
getSender
in interface Request
public java.lang.Object getParameter(int index)
Request
index
from the method call
embedded in the request
getParameter
in interface Request
index
- the position of the parameter to return.
public MethodCall getMethodCall()
Request
getMethodCall
in interface Request
public void notifyReception(UniversalBody bodyReceiver) throws java.io.IOException
Request
notifyReception
in interface Request
bodyReceiver
- the body destination that received the request
java.io.IOException
- if the request failed to perform a possible
operation upon that notificationprotected void serveInternal(Body targetBody) throws ServeException
ServeException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |