org.objectweb.proactive.ext.locationserver
Class TimedRequestWithLocationServer

java.lang.Object
  extended byorg.objectweb.proactive.core.body.message.MessageImpl
      extended byorg.objectweb.proactive.core.body.request.RequestImpl
          extended byorg.objectweb.proactive.ext.locationserver.TimedRequestWithLocationServer
All Implemented Interfaces:
Message, Request, Securizable, 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
 
Fields inherited from class org.objectweb.proactive.core.body.request.RequestImpl
ciphered, codebase, logger, loggerNFE, methodCall, sendCounter, sender, sessionID
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ftm, ignoreIt, isOneWay, messageInfos, methodName, sequenceNumber, sourceID, timeStamp
 
Constructor Summary
TimedRequestWithLocationServer(MethodCall methodCall, UniversalBody sender, boolean isOneWay, long nextSequenceID, LocationServer server)
           
 
Method Summary
protected  void backupSolution(UniversalBody destinationBody)
          Implements the backup solution
protected  UniversalBody queryServer(UniqueID bodyID)
           
protected  int sendRequest(UniversalBody destinationBody)
           
 Reply serve(Body targetBody)
          Serves this request by executing the embedded method call using the given targetBody.
 
Methods inherited from class org.objectweb.proactive.core.body.request.RequestImpl
createReply, crypt, decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, resetSendCounter, send, serveAlternate, serveInternal
 
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

startTime

protected long startTime
the number of time we try before reporting a failure

Constructor Detail

TimedRequestWithLocationServer

public TimedRequestWithLocationServer(MethodCall methodCall,
                                      UniversalBody sender,
                                      boolean isOneWay,
                                      long nextSequenceID,
                                      LocationServer server)
Method Detail

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
Throws:
ServeException

sendRequest

protected int sendRequest(UniversalBody destinationBody)
                   throws java.io.IOException
Overrides:
sendRequest in class RequestImpl
Throws:
java.io.IOException

backupSolution

protected void backupSolution(UniversalBody destinationBody)
                       throws java.io.IOException
Implements the backup solution

Throws:
java.io.IOException

queryServer

protected UniversalBody queryServer(UniqueID bodyID)


Copyright 2001-2005 INRIA All Rights Reserved.