|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object implementing this interface provides the minimum service a body offers remotely or locally. This interface is the generic version that is used remotely and locally. A body accessed from the same JVM offers all services of this interface, plus the services defined in the Body interface.
Body
,
RmiBodyAdapter
Field Summary | |
static org.apache.log4j.Logger |
bodyLogger
|
Method Summary | |
void |
createShortcut(Shortcut shortcut)
similar to the updateLocation(org.objectweb.proactive.core.UniqueID, UniversalBody) method,
it allows direct communication to the target of a functional call, accross membranes of composite components. |
void |
disableAC()
Disables automatic continuation mechanism for this body |
void |
enableAC()
Enables automatic continuation mechanism for this body |
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 |
BodyAdapter |
getRemoteAdapter()
Returns the remote friendly version of this body |
java.lang.Object |
receiveFTMessage(FTMessage ev)
For sending a non fonctional message to the FTManager linked to this object. |
int |
receiveReply(Reply r)
Receives a reply in response to a former request. |
int |
receiveRequest(Request request)
Receives a request for later processing. |
void |
removeImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
Removes an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread. |
void |
setImmediateService(java.lang.String methodName)
For setting an immediate service for this body. |
void |
setImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
Adds an immediate service for this body An immediate service is a method that will bw excecuted by the calling thread. |
void |
terminate()
Terminate the body. |
void |
updateLocation(UniqueID id,
UniversalBody body)
Signals to this body that the body identified by id is now to a new remote location. |
Methods inherited from interface org.objectweb.proactive.core.exceptions.manager.NFEProducer |
addNFEListener, fireNFE, removeNFEListener |
Methods inherited from interface org.objectweb.proactive.Job |
getJobID |
Methods inherited from interface org.objectweb.proactive.ext.security.SecurityEntity |
getCertificate, getCertificateEncoded, getEntities, getPolicy, getPublicKey, publicKeyExchange, randomValue, secretKeyExchange, startNewSession, terminateSession |
Field Detail |
public static final org.apache.log4j.Logger bodyLogger
Method Detail |
public int receiveRequest(Request request) throws java.io.IOException, RenegotiateSessionException
request
- the request to process
java.io.IOException
- if the request cannot be accepted
RenegotiateSessionException
public int receiveReply(Reply r) throws java.io.IOException
r
- the reply received
java.io.IOException
- if the reply cannot be acceptedpublic java.lang.String getNodeURL()
public UniqueID getID()
public void updateLocation(UniqueID id, UniversalBody body) throws java.io.IOException
id
- the id of the bodybody
- the stub to the new location
java.io.IOException
- if a pb occurs during this method callpublic void createShortcut(Shortcut shortcut) throws java.io.IOException
updateLocation(org.objectweb.proactive.core.UniqueID, UniversalBody)
method,
it allows direct communication to the target of a functional call, accross membranes of composite components.
shortcut
- the shortcut to create
java.io.IOException
- if a pb occurs during this method callpublic BodyAdapter getRemoteAdapter()
public void terminate() throws java.io.IOException
java.io.IOException
- if a pb occurs during this method callpublic void enableAC() throws java.io.IOException
java.io.IOException
- if a pb occurs during this method callpublic void disableAC() throws java.io.IOException
java.io.IOException
- if a pb occurs during this method callpublic void setImmediateService(java.lang.String methodName) throws java.io.IOException
java.io.IOException
- if a pb occurs during this method callpublic void setImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
methodName
- the name of the methodparametersTypes
- the types of the parameters of the method
java.io.IOException
- if a pb occurs during this method callpublic void removeImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
methodName
- the name of the methodparametersTypes
- the types of the parameters of the method
java.io.IOException
- if a pb occurs during this method callpublic java.lang.Object receiveFTMessage(FTMessage ev) throws java.io.IOException
ev
- the message to send
java.io.IOException
- if a pb occurs during this method call
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |