org.objectweb.proactive.core.body
Interface RemoteBodyForwarder

All Known Subinterfaces:
RmiRemoteBodyForwarder
All Known Implementing Classes:
RmiRemoteBodyForwarderImpl

public interface RemoteBodyForwarder

An object implementing this interface provides the minimum service a body forwarder 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.

Author:
ProActiveTeam
See Also:
UniversalBodyForwarder

Field Summary
static org.apache.log4j.Logger bodyLogger
           
 
Method Summary
 void addNFEListener(UniqueID id, NFEListener listener)
           
 void changeProxiedBody(UniqueID id, Body newBody)
           
 void disableAC(UniqueID id)
           
 void enableAC(UniqueID id)
           
 int fireNFE(UniqueID id, NonFunctionalException e)
           
 java.security.cert.X509Certificate getCertificate(UniqueID id)
           
 byte[] getCertificateEncoded(UniqueID id)
           
 java.util.ArrayList getEntities(UniqueID id)
           
 UniqueID getID(UniqueID id)
           
 java.lang.String getJobID(UniqueID id)
           
 java.lang.String getNodeURL(UniqueID id)
           
 SecurityContext getPolicy(UniqueID id, SecurityContext securityContext)
           
 java.security.PublicKey getPublicKey(UniqueID id)
           
 BodyAdapter getRemoteAdapter(UniqueID id)
           
 UniversalBody lookup(UniqueID id, java.lang.String url)
           
 byte[][] publicKeyExchange(UniqueID id, long sessionID, byte[] myPublicKey, byte[] myCertificate, byte[] signature)
           
 byte[] randomValue(UniqueID id, long sessionID, byte[] clientRandomValue)
           
 java.lang.Object receiveFTMessage(UniqueID id, FTMessage fte)
           
 int receiveReply(UniqueID id, Reply r)
           
 int receiveRequest(UniqueID id, Request r)
           
 void register(UniqueID id, java.lang.String url)
           
 void removeImmediateService(UniqueID id, java.lang.String methodName, java.lang.Class[] parametersTypes)
           
 void removeNFEListener(UniqueID id, NFEListener listener)
           
 byte[][] secretKeyExchange(UniqueID id, long sessionID, byte[] encodedAESKey, byte[] encodedIVParameters, byte[] encodedClientMacKey, byte[] encodedLockData, byte[] parametersSignature)
           
 void setImmediateService(UniqueID id, java.lang.String methodName)
           
 void setImmediateService(UniqueID id, java.lang.String methodName, java.lang.Class[] parametersTypes)
           
 long startNewSession(UniqueID id, Communication policy)
           
 void terminate(UniqueID id)
           
 void terminateSession(UniqueID id, long sessionID)
           
 void unregister(UniqueID id, java.lang.String url)
           
 void updateLocation(UniqueID id, UniqueID uid, UniversalBody body)
           
 

Field Detail

bodyLogger

public static final org.apache.log4j.Logger bodyLogger
Method Detail

receiveRequest

public int receiveRequest(UniqueID id,
                          Request r)
                   throws java.io.IOException,
                          RenegotiateSessionException
Throws:
java.io.IOException
RenegotiateSessionException
See Also:
RemoteBody.receiveRequest(Request)

receiveReply

public int receiveReply(UniqueID id,
                        Reply r)
                 throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.receiveReply(Reply)

terminate

public void terminate(UniqueID id)
               throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.terminate()

getNodeURL

public java.lang.String getNodeURL(UniqueID id)
                            throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.getNodeURL()

getID

public UniqueID getID(UniqueID id)
               throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.getID()

getJobID

public java.lang.String getJobID(UniqueID id)
                          throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.getJobID()

updateLocation

public void updateLocation(UniqueID id,
                           UniqueID uid,
                           UniversalBody body)
                    throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.updateLocation(UniqueID, UniversalBody)

enableAC

public void enableAC(UniqueID id)
              throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.enableAC()

disableAC

public void disableAC(UniqueID id)
               throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.disableAC()

setImmediateService

public void setImmediateService(UniqueID id,
                                java.lang.String methodName)
                         throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.setImmediateService(String)

setImmediateService

public void setImmediateService(UniqueID id,
                                java.lang.String methodName,
                                java.lang.Class[] parametersTypes)
                         throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.setImmediateService(String, Class[])

removeImmediateService

public void removeImmediateService(UniqueID id,
                                   java.lang.String methodName,
                                   java.lang.Class[] parametersTypes)
                            throws java.io.IOException
Throws:
java.io.IOException
See Also:
RemoteBody.removeImmediateService(String, Class[])

getCertificate

public java.security.cert.X509Certificate getCertificate(UniqueID id)
                                                  throws SecurityNotAvailableException,
                                                         java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

startNewSession

public long startNewSession(UniqueID id,
                            Communication policy)
                     throws SecurityNotAvailableException,
                            RenegotiateSessionException,
                            java.io.IOException
Throws:
SecurityNotAvailableException
RenegotiateSessionException
java.io.IOException

getPublicKey

public java.security.PublicKey getPublicKey(UniqueID id)
                                     throws SecurityNotAvailableException,
                                            java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

randomValue

public byte[] randomValue(UniqueID id,
                          long sessionID,
                          byte[] clientRandomValue)
                   throws SecurityNotAvailableException,
                          RenegotiateSessionException,
                          java.io.IOException
Throws:
SecurityNotAvailableException
RenegotiateSessionException
java.io.IOException

publicKeyExchange

public byte[][] publicKeyExchange(UniqueID id,
                                  long sessionID,
                                  byte[] myPublicKey,
                                  byte[] myCertificate,
                                  byte[] signature)
                           throws SecurityNotAvailableException,
                                  RenegotiateSessionException,
                                  KeyExchangeException,
                                  java.io.IOException
Throws:
SecurityNotAvailableException
RenegotiateSessionException
KeyExchangeException
java.io.IOException

secretKeyExchange

public byte[][] secretKeyExchange(UniqueID id,
                                  long sessionID,
                                  byte[] encodedAESKey,
                                  byte[] encodedIVParameters,
                                  byte[] encodedClientMacKey,
                                  byte[] encodedLockData,
                                  byte[] parametersSignature)
                           throws SecurityNotAvailableException,
                                  RenegotiateSessionException,
                                  java.io.IOException
Throws:
SecurityNotAvailableException
RenegotiateSessionException
java.io.IOException

getPolicy

public SecurityContext getPolicy(UniqueID id,
                                 SecurityContext securityContext)
                          throws SecurityNotAvailableException,
                                 java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

getCertificateEncoded

public byte[] getCertificateEncoded(UniqueID id)
                             throws SecurityNotAvailableException,
                                    java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

getEntities

public java.util.ArrayList getEntities(UniqueID id)
                                throws SecurityNotAvailableException,
                                       java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

terminateSession

public void terminateSession(UniqueID id,
                             long sessionID)
                      throws SecurityNotAvailableException,
                             java.io.IOException
Throws:
SecurityNotAvailableException
java.io.IOException

receiveFTMessage

public java.lang.Object receiveFTMessage(UniqueID id,
                                         FTMessage fte)
                                  throws java.io.IOException
Throws:
java.io.IOException

changeProxiedBody

public void changeProxiedBody(UniqueID id,
                              Body newBody)
                       throws java.io.IOException
Throws:
java.io.IOException

addNFEListener

public void addNFEListener(UniqueID id,
                           NFEListener listener)
                    throws java.io.IOException
Throws:
java.io.IOException

removeNFEListener

public void removeNFEListener(UniqueID id,
                              NFEListener listener)
                       throws java.io.IOException
Throws:
java.io.IOException

fireNFE

public int fireNFE(UniqueID id,
                   NonFunctionalException e)
            throws java.io.IOException
Throws:
java.io.IOException

lookup

public UniversalBody lookup(UniqueID id,
                            java.lang.String url)
                     throws java.io.IOException
Throws:
java.io.IOException

unregister

public void unregister(UniqueID id,
                       java.lang.String url)
                throws java.io.IOException
Throws:
java.io.IOException

register

public void register(UniqueID id,
                     java.lang.String url)
              throws java.io.IOException
Throws:
java.io.IOException

getRemoteAdapter

public BodyAdapter getRemoteAdapter(UniqueID id)
                             throws java.io.IOException
Throws:
java.io.IOException


Copyright 2001-2005 INRIA All Rights Reserved.