|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String |
jobID
|
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,
java.lang.String jobID)
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 |
getJobID()
|
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, receiveFTMessage, receiveReply, receiveRequest, secretKeyExchange, setImmediateService, startNewSession, terminate, terminateSession |
Methods inherited from interface org.objectweb.proactive.core.exceptions.Handlerizable |
clearHandlersLevel, getHandlerizableInfo, getHandlersLevel, setExceptionHandler, unsetExceptionHandler |
Field Detail |
protected UniqueID bodyID
protected BodyMap location
protected java.lang.String nodeURL
protected transient UniversalBody remoteBody
protected RemoteBodyFactory remoteBodyFactory
protected java.lang.String jobID
Constructor Detail |
public AbstractUniversalBody()
public AbstractUniversalBody(java.lang.String nodeURL, RemoteBodyFactory remoteBodyFactory, java.lang.String jobID)
nodeURL
- the URL of the node that body is attached toremoteBodyFactory
- the factory able to construct new factories for each type of meta objects
needed by this bodyMethod Detail |
public java.lang.String getJobID()
getJobID
in interface Job
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 |