org.objectweb.proactive.ext.locationserver
Class TimedRequestWithLocationServer
java.lang.Object
|
+--org.objectweb.proactive.core.body.message.MessageImpl
|
+--org.objectweb.proactive.core.body.request.RequestImpl
|
+--org.objectweb.proactive.ext.locationserver.TimedRequestWithLocationServer
- All Implemented Interfaces:
- Message, Request, java.io.Serializable
- Direct Known Subclasses:
- TimedRequestWithMixedLocation
- public class TimedRequestWithLocationServer
- extends RequestImpl
- implements java.io.Serializable
- See Also:
- Serialized Form
Field Summary |
protected long |
startTime
the number of time we try before reporting a failure |
Methods inherited from class org.objectweb.proactive.core.body.request.RequestImpl |
createReply, decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, send, serveInternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startTime
protected long startTime
- the number of time we try before reporting a failure
TimedRequestWithLocationServer
public TimedRequestWithLocationServer(MethodCall methodCall,
UniversalBody sender,
boolean isOneWay,
long nextSequenceID,
LocationServer server)
serve
public Reply serve(Body targetBody)
throws ServeException
- Description copied from interface:
Request
- Serves this request by executing the embedded method call using the given
targetBody
. Once the eventual result obtained from the method call
a the reply is returned (based on that result).
- Specified by:
serve
in interface Request
- Overrides:
serve
in class RequestImpl
- Parameters:
targetBody
- the body destination of the call
- Returns:
- the reply built using the result or null if the request is one way
- Throws:
ServeException
- if the method call fails to be served
sendRequest
protected void sendRequest(UniversalBody destinationBody)
throws java.io.IOException
- Overrides:
sendRequest
in class RequestImpl
java.io.IOException
backupSolution
protected void backupSolution(UniversalBody destinationBody)
throws java.io.IOException
- Implements the backup solution
java.io.IOException
queryServer
protected UniversalBody queryServer(UniqueID bodyID)
Copyright © April 2004 INRIA All Rights Reserved.