|
|||||||||||
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
|
protected java.util.Map |
shortcuts
|
Fields inherited from interface org.objectweb.proactive.core.body.UniversalBody |
bodyLogger |
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 | |
void |
addNFEListener(NFEListener listener)
|
void |
createShortcut(Shortcut shortcut)
similar to the UniversalBody.updateLocation(org.objectweb.proactive.core.UniqueID, UniversalBody) method,
it allows direct communication to the target of a functional call, accross membranes of composite components. |
int |
fireNFE(NonFunctionalException e)
|
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 |
BodyAdapter |
getRemoteAdapter()
Returns the remote friendly version of this body |
void |
removeNFEListener(NFEListener listener)
|
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, receiveFTMessage, receiveReply, receiveRequest, removeImmediateService, setImmediateService, setImmediateService, terminate |
Methods inherited from interface org.objectweb.proactive.ext.security.SecurityEntity |
getCertificate, getCertificateEncoded, getEntities, getPolicy, getPublicKey, publicKeyExchange, randomValue, secretKeyExchange, startNewSession, terminateSession |
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
protected java.util.Map shortcuts
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 BodyAdapter 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 locationpublic void createShortcut(Shortcut shortcut) throws java.io.IOException
UniversalBody
UniversalBody.updateLocation(org.objectweb.proactive.core.UniqueID, UniversalBody)
method,
it allows direct communication to the target of a functional call, accross membranes of composite components.
createShortcut
in interface UniversalBody
shortcut
- the shortcut to create
java.io.IOException
- if a pb occurs during this method callpublic void addNFEListener(NFEListener listener)
addNFEListener
in interface NFEProducer
public void removeNFEListener(NFEListener listener)
removeNFEListener
in interface NFEProducer
public int fireNFE(NonFunctionalException e)
fireNFE
in interface NFEProducer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |