|
|||||||||||
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. This interface is extended by protocol-specific(RMI, RMI/SSH, IBIS, HTTP, JINI) remote interfaces to allow the body to be accessed remotely.
UniversalBody
,
Adapter PatternField Summary | |
static org.apache.log4j.Logger |
bodyLogger
|
Method Summary | |
void |
addNFEListener(NFEListener listener)
|
void |
changeProxiedBody(Body newBody)
Change the body referenced by this adapter |
void |
disableAC()
Disables automatic continuation mechanism for this body |
void |
enableAC()
Enables automatic continuation mechanism for this body |
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 |
java.lang.Object |
receiveFTMessage(FTMessage fte)
For sending a message to the FTManager linked to this object |
int |
receiveReply(Reply r)
Receives a reply in response to a former request. |
int |
receiveRequest(Request r)
Receives a request for later processing. |
void |
removeImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
|
void |
removeNFEListener(NFEListener listener)
|
void |
setImmediateService(java.lang.String methodName)
For setting an immediate service for this body. |
void |
setImmediateService(java.lang.String methodName,
java.lang.Class[] parametersTypes)
|
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.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 r) throws java.io.IOException, RenegotiateSessionException
r
- 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 void terminate() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic java.lang.String getNodeURL() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic UniqueID getID() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic java.lang.String getJobID() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic 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 an exception occured during the remote communicationpublic void enableAC() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic void disableAC() throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic void setImmediateService(java.lang.String methodName) throws java.io.IOException
java.io.IOException
- if an exception occured during the remote communicationpublic void setImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
java.io.IOException
public void removeImmediateService(java.lang.String methodName, java.lang.Class[] parametersTypes) throws java.io.IOException
java.io.IOException
public java.lang.Object receiveFTMessage(FTMessage fte) throws java.io.IOException
fte
- the message
java.io.IOException
- if an exception occured during the remote communicationpublic void changeProxiedBody(Body newBody) throws java.io.IOException
newBody
- the body referenced after the call
java.io.IOException
- if an exception occured during the remote communicationpublic void addNFEListener(NFEListener listener) throws java.io.IOException
java.io.IOException
public void removeNFEListener(NFEListener listener) throws java.io.IOException
java.io.IOException
public int fireNFE(NonFunctionalException e) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |