|
|||||||||||
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 the non fonctionnal part of an ActiveObject. This representation is local to the ActiveObject. By contrast there is a remote representation of Body that can be accessed by distant object.
UniversalBody
defines the remote accessible part of the body while
LocalBody
defines the local accessible part of the body.
The body of an ActiveObject provides needed services such as a the ability to sent and receive request and reply.
The interface also defines how the activity methods of an active object sees its Body.
A body has 2 associated states :
Note that a thread can be alive but not active, such as a forwarder that just forward request to another peer.
Method Summary | |
void |
acceptCommunication()
Signals the body to accept all incoming communications. |
void |
blockCommunication()
blocks all incoming communications. |
UniversalBody |
checkNewLocation(UniqueID uniqueID)
Tries to find a local version of the body of id uniqueID. |
void |
enterInThreadStore()
Allows the calling thread to enter in the ThreadStore of this body. |
void |
exitFromThreadStore()
Allows the calling thread to exit from the ThreadStore of this body. |
boolean |
isActive()
Returns whether the body is active or not. |
boolean |
isAlive()
Returns whether the body is alive or not. |
void |
terminate()
Terminate the body. |
Methods inherited from interface org.objectweb.proactive.core.body.LocalBodyStrategy |
getFuturePool, getName, getReifiedObject, getRequestQueue, sendRequest, serve |
Methods inherited from interface org.objectweb.proactive.core.body.UniversalBody |
disableAC, enableAC, getCertificate, getCertificateEncoded, getEntities, getID, getNodeURL, getPolicy, getPolicyFrom, getPolicyTo, getProActiveSecurityManager, getPublicKey, getRemoteAdapter, getVNName, initiateSession, negociateKeyReceiverSide, publicKeyExchange, randomValue, receiveReply, receiveRequest, secretKeyExchange, setImmediateService, startNewSession, terminateSession, updateLocation |
Methods inherited from interface org.objectweb.proactive.core.body.message.MessageEventProducer |
addMessageEventListener, removeMessageEventListener |
Methods inherited from interface org.objectweb.proactive.Job |
getJobID |
Method Detail |
public void terminate()
public boolean isAlive()
public boolean isActive()
public void blockCommunication()
public void acceptCommunication()
public void enterInThreadStore()
public void exitFromThreadStore()
public UniversalBody checkNewLocation(UniqueID uniqueID)
uniqueID
- the id of the body to lookup
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |