|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
public FuturePool getFuturePool()
public BlockingRequestQueue getRequestQueue()
public java.lang.Object getReifiedObject()
public java.lang.String getName()
public void sendRequest(MethodCall methodCall, Future future, UniversalBody destinationBody) throws java.io.IOException, RenegotiateSessionException
request
with the future future
to the local body
body
.
methodCall
- the methodCall to sendfuture
- the future associated to the requestdestinationBody
- the body the request is sent to
java.io.IOException
- if the request cannot be sent to the destination body
RenegotiateSessionException
public void serve(Request 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.
request
- the request to serve
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |