org.objectweb.proactive.core.component.request
Class ComponentRequestImpl

java.lang.Object
  extended byorg.objectweb.proactive.core.body.message.MessageImpl
      extended byorg.objectweb.proactive.core.body.request.RequestImpl
          extended byorg.objectweb.proactive.core.component.request.ComponentRequestImpl
All Implemented Interfaces:
ComponentRequest, Message, Request, java.io.Serializable

public class ComponentRequestImpl
extends RequestImpl
implements ComponentRequest, java.io.Serializable

Method calls to components are actually reified calls, and ComponentRequest contains a reification of the call. This class allows for the tagging of the call (a component call), and the redispatching to the targeted component metaobject.

Author:
Matthieu Morel
See Also:
Serialized Form

Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class org.objectweb.proactive.core.body.request.RequestImpl
codebase, loggerNFE, methodCall, sendCounter, sender, sessionID
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ciphered, ftm, ignoreIt, isOneWay, messageInfos, methodName, sequenceNumber, sourceID, timeStamp
 
Constructor Summary
ComponentRequestImpl(MethodCall methodCall, UniversalBody sender, boolean isOneWay, long nextSequenceID)
           
ComponentRequestImpl(Request request)
           
 
Method Summary
 boolean isControllerRequest()
          tells whether the request is a call to a control interface
protected  FutureResult serveInternal(Body targetBody)
          redirects the call to the adequate component metaobject
 
Methods inherited from class org.objectweb.proactive.core.body.request.RequestImpl
createReply, decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, resetSendCounter, send, sendRequest, serve, serveAlternate
 
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.request.Request
decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, resetSendCounter, send, serve, serveAlternate
 
Methods inherited from interface org.objectweb.proactive.core.body.message.Message
getFTManager, getMessageInfo, getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, ignoreIt, isOneWay, setFTManager, setIgnoreIt, setMessageInfo
 

Field Detail

logger

protected static org.apache.log4j.Logger logger
Constructor Detail

ComponentRequestImpl

public ComponentRequestImpl(MethodCall methodCall,
                            UniversalBody sender,
                            boolean isOneWay,
                            long nextSequenceID)

ComponentRequestImpl

public ComponentRequestImpl(Request request)
Method Detail

serveInternal

protected FutureResult serveInternal(Body targetBody)
                              throws ServeException
redirects the call to the adequate component metaobject

Overrides:
serveInternal in class RequestImpl
Throws:
ServeException

isControllerRequest

public boolean isControllerRequest()
Description copied from interface: ComponentRequest
tells whether the request is a call to a control interface

Specified by:
isControllerRequest in interface ComponentRequest
See Also:
ComponentRequest.isControllerRequest()


Copyright ? April 2005 INRIA All Rights Reserved.