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

java.lang.Object
  |
  +--org.objectweb.proactive.core.body.message.MessageImpl
        |
        +--org.objectweb.proactive.core.body.request.RequestImpl
              |
              +--org.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, methodCall, sendCounter, sender, sessionID
 
Fields inherited from class org.objectweb.proactive.core.body.message.MessageImpl
ciphered, isOneWay, 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  java.lang.Object 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, send, sendRequest, serve
 
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.request.Request
decrypt, getMethodCall, getParameter, getSender, getSessionId, hasBeenForwarded, isCiphered, notifyReception, send, serve
 
Methods inherited from interface org.objectweb.proactive.core.body.message.Message
getMethodName, getSequenceNumber, getSourceBodyID, getTimeStamp, isOneWay
 

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 java.lang.Object serveInternal(Body targetBody)
                                  throws ServeException
redirects the call to the adequate component metaobject

Overrides:
serveInternal in class RequestImpl
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 2004 INRIA All Rights Reserved.