org.objectweb.proactive.core.body
Interface LocalBodyStrategy

All Known Subinterfaces:
Body
All Known Implementing Classes:
AbstractBody

public interface LocalBodyStrategy

An object implementing this interface is an implementation of one part of the local view of the body of an active object. This interface define only one part of the local view and is used to be able to change easily the strategy of a body. Typically, after a body migrates, it is necessary to change the its local implementation.

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team

Method Summary
 FuturePool getFuturePool()
          Returns the future pool of this body
 java.lang.String getName()
          Returns the name of this body that can be used for displaying information
 java.lang.Object getReifiedObject()
          Returns the reified object that body is for The reified object is the object that has been turned active.
 BlockingRequestQueue getRequestQueue()
          Returns the request queue associated to this body
 void sendRequest(MethodCall methodCall, Future future, UniversalBody destinationBody)
          Sends the request request with the future future to the local body body.
 void serve(Request request)
          Serves the request request by the invoking the targeted method on the reified object.
 

Method Detail

getFuturePool

public FuturePool getFuturePool()
Returns the future pool of this body

Returns:
the future pool of this body

getRequestQueue

public BlockingRequestQueue getRequestQueue()
Returns the request queue associated to this body

Returns:
the request queue associated to this body

getReifiedObject

public java.lang.Object getReifiedObject()
Returns the reified object that body is for The reified object is the object that has been turned active.

Returns:
the reified object that body is for

getName

public java.lang.String getName()
Returns the name of this body that can be used for displaying information

Returns:
the name of this body

sendRequest

public void sendRequest(MethodCall methodCall,
                        Future future,
                        UniversalBody destinationBody)
                 throws java.io.IOException,
                        RenegotiateSessionException
Sends the request request with the future future to the local body body.

Parameters:
methodCall - the methodCall to send
future - the future associated to the request
destinationBody - the body the request is sent to
Throws:
java.io.IOException - if the request cannot be sent to the destination body
RenegotiateSessionException

serve

public void serve(Request request)
Serves the request request by the invoking the targeted method on the reified object. Some specific type of request may involve special processing that does not trigger a method on the reified object.

Parameters:
request - the request to serve


Copyright © April 2004 INRIA All Rights Reserved.