|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.body.AbstractUniversalBody
**For internal use only**
This class gives a common implementation of the UniversalBody interface. It provides all the non specific behavior allowing sub-class to write the detail implementation.
Each body is identify by an unique identifier.
Field Summary | |
protected UniqueID |
bodyID
Unique ID of the body. |
protected BodyMap |
location
A table containing a mapping from a UniqueID toward a Body. |
protected java.lang.String |
nodeURL
The URL of the node this body is attached to |
protected UniversalBody |
remoteBody
A remote version of this body that is used to send to remote peer |
protected RemoteBodyFactory |
remoteBodyFactory
|
Constructor Summary | |
AbstractUniversalBody()
Creates a new AbstractBody. |
|
AbstractUniversalBody(java.lang.String nodeURL,
RemoteBodyFactory remoteBodyFactory)
Creates a new AbstractBody for an active object attached to a given node. |
Method Summary | |
UniqueID |
getID()
Returns the UniqueID of this body This identifier is unique accross all JVMs |
java.lang.String |
getNodeURL()
Returns the url of the node this body is associated to The url of the node can change if the active object migrates |
UniversalBody |
getRemoteAdapter()
Returns the remote friendly version of this body |
void |
updateLocation(UniqueID bodyID,
UniversalBody body)
Signals to this body that the body identified by id is now to a new remote location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.proactive.core.body.UniversalBody |
disableAC, enableAC, getCertificate, getCertificateEncoded, getEntities, getPolicy, getPolicyFrom, getPolicyTo, getProActiveSecurityManager, getPublicKey, getVNName, initiateSession, negociateKeyReceiverSide, publicKeyExchange, randomValue, receiveReply, receiveRequest, secretKeyExchange, setImmediateService, startNewSession, terminateSession |
Field Detail |
protected UniqueID bodyID
protected BodyMap location
protected java.lang.String nodeURL
protected transient UniversalBody remoteBody
protected RemoteBodyFactory remoteBodyFactory
Constructor Detail |
public AbstractUniversalBody()
public AbstractUniversalBody(java.lang.String nodeURL, RemoteBodyFactory remoteBodyFactory)
nodeURL
- the URL of the node that body is attached toMethod Detail |
public java.lang.String getNodeURL()
UniversalBody
getNodeURL
in interface UniversalBody
public UniversalBody getRemoteAdapter()
UniversalBody
getRemoteAdapter
in interface UniversalBody
public UniqueID getID()
UniversalBody
getID
in interface UniversalBody
public void updateLocation(UniqueID bodyID, UniversalBody body)
UniversalBody
updateLocation
in interface UniversalBody
bodyID
- the id of the bodybody
- the stub to the new location
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |