org.objectweb.proactive.ext.locationserver
Class RequestWithLocationServer

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.message.MessageImpl
        |
        +--org.objectweb.proactive.core.body.request.RequestImpl
              |
              +--org.objectweb.proactive.ext.locationserver.RequestWithLocationServer
All Implemented Interfaces:
Message, Request, java.io.Serializable

public class RequestWithLocationServer
extends RequestImpl
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.proactive.core.body.request.RequestImpl
codebase, logger, methodCall, sendCounter, sender, sessionID
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ciphered, isOneWay, methodName, sequenceNumber, sourceID, timeStamp
 
Constructor Summary
RequestWithLocationServer(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  void 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, decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, send, serveInternal
 
Methods inherited from class org.objectweb.proactive.core.body.message.MessageImpl
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, isOneWay, 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, isOneWay
 

Constructor Detail

RequestWithLocationServer

public RequestWithLocationServer(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
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.