org.objectweb.proactive.core.body.jini
Class JiniBodyImpl_Stub

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteStub
              |
              +--org.objectweb.proactive.core.body.jini.JiniBodyImpl_Stub
All Implemented Interfaces:
JiniBody, java.rmi.Remote, java.io.Serializable

public final synchronized class JiniBodyImpl_Stub
extends java.rmi.server.RemoteStub
implements JiniBody, java.rmi.Remote

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
JiniBodyImpl_Stub(java.rmi.server.RemoteRef)
           
 
Method Summary
 void disableAC()
          Disables automatic continuation mechanism for this body
 void enableAC()
          Enables automatic continuation mechanism for this body
 java.security.cert.X509Certificate getCertificate()
           
 byte[] getCertificateEncoded()
           
 java.util.ArrayList getEntities()
           
 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
 SecurityContext getPolicy(SecurityContext)
           
 Policy getPolicyFrom(java.security.cert.X509Certificate)
           
 Communication getPolicyTo(java.lang.String, java.lang.String, java.lang.String)
           
 ProActiveSecurityManager getProActiveSecurityManager()
           
 java.security.PublicKey getPublicKey()
           
 java.lang.String getVNName()
           
 void initiateSession(int, UniversalBody)
           
 ConfidentialityTicket negociateKeyReceiverSide(ConfidentialityTicket, long)
           
 byte[][] publicKeyExchange(long, UniversalBody, byte[], byte[], byte[])
           
 byte[] randomValue(long, byte[])
           
 void receiveReply(Reply)
          Receives a reply in response to a former request.
 void receiveRequest(Request)
          Receives a request for later processing.
 byte[][] secretKeyExchange(long, byte[], byte[], byte[], byte[], byte[])
           
 void setImmediateService(java.lang.String)
          For setting an immediate service for this body.
 long startNewSession(Communication)
           
 void terminateSession(long)
           
 void updateLocation(UniqueID, UniversalBody)
          Signals to this body that the body identified by id is now to a new jini location.
 
Methods inherited from class java.rmi.server.RemoteStub
setRef
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JiniBodyImpl_Stub

public JiniBodyImpl_Stub(java.rmi.server.RemoteRef)
Method Detail

disableAC

public void disableAC()
               throws java.io.IOException
Description copied from interface: JiniBody
Disables automatic continuation mechanism for this body

Specified by:
disableAC in interface JiniBody
java.io.IOException

enableAC

public void enableAC()
              throws java.io.IOException
Description copied from interface: JiniBody
Enables automatic continuation mechanism for this body

Specified by:
enableAC in interface JiniBody
java.io.IOException

getCertificate

public java.security.cert.X509Certificate getCertificate()
                                                  throws java.io.IOException,
                                                         SecurityNotAvailableException
Specified by:
getCertificate in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getCertificateEncoded

public byte[] getCertificateEncoded()
                             throws java.io.IOException,
                                    SecurityNotAvailableException
Specified by:
getCertificateEncoded in interface JiniBody
Returns:
object certificate as byte array
java.io.IOException
SecurityNotAvailableException

getEntities

public java.util.ArrayList getEntities()
                                throws java.io.IOException,
                                       SecurityNotAvailableException
Specified by:
getEntities in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getID

public UniqueID getID()
               throws java.rmi.RemoteException
Description copied from interface: JiniBody
Returns the UniqueID of this body This identifier is unique accross all JVMs

Specified by:
getID in interface JiniBody
Returns:
the UniqueID of this body
Throws:
java.rmi.RemoteException - if an exception occured during the jini communication

getNodeURL

public java.lang.String getNodeURL()
                            throws java.rmi.RemoteException
Description copied from interface: JiniBody
Returns the url of the node this body is associated to The url of the node can change if the active object migrates

Specified by:
getNodeURL in interface JiniBody
Returns:
the url of the node this body is associated to
Throws:
java.rmi.RemoteException - if an exception occured during the jini communication

getPolicy

public SecurityContext getPolicy(SecurityContext)
                          throws java.io.IOException,
                                 SecurityNotAvailableException
Specified by:
getPolicy in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getPolicyFrom

public Policy getPolicyFrom(java.security.cert.X509Certificate)
                     throws java.io.IOException,
                            SecurityNotAvailableException
Specified by:
getPolicyFrom in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getPolicyTo

public Communication getPolicyTo(java.lang.String,
                                 java.lang.String,
                                 java.lang.String)
                          throws java.io.IOException,
                                 SecurityNotAvailableException
Specified by:
getPolicyTo in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getProActiveSecurityManager

public ProActiveSecurityManager getProActiveSecurityManager()
                                                     throws java.io.IOException,
                                                            SecurityNotAvailableException
Specified by:
getProActiveSecurityManager in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getPublicKey

public java.security.PublicKey getPublicKey()
                                     throws java.io.IOException,
                                            SecurityNotAvailableException
Specified by:
getPublicKey in interface JiniBody
java.io.IOException
SecurityNotAvailableException

getVNName

public java.lang.String getVNName()
                           throws java.io.IOException,
                                  SecurityNotAvailableException
Specified by:
getVNName in interface JiniBody
Returns:
virtual node name where the object has been created
java.io.IOException
SecurityNotAvailableException

initiateSession

public void initiateSession(int,
                            UniversalBody)
                     throws java.io.IOException,
                            java.rmi.RemoteException,
                            CommunicationForbiddenException,
                            RenegotiateSessionException,
                            SecurityNotAvailableException,
                            AuthenticationException
Specified by:
initiateSession in interface JiniBody
java.io.IOException
java.rmi.RemoteException
CommunicationForbiddenException
RenegotiateSessionException
SecurityNotAvailableException
AuthenticationException

negociateKeyReceiverSide

public ConfidentialityTicket negociateKeyReceiverSide(ConfidentialityTicket,
                                                      long)
                                               throws java.io.IOException,
                                                      SecurityNotAvailableException,
                                                      KeyExchangeException
Specified by:
negociateKeyReceiverSide in interface JiniBody
java.io.IOException
SecurityNotAvailableException
KeyExchangeException

publicKeyExchange

public byte[][] publicKeyExchange(long,
                                  UniversalBody,
                                  byte[],
                                  byte[],
                                  byte[])
                           throws java.lang.Exception,
                                  SecurityNotAvailableException
Specified by:
publicKeyExchange in interface JiniBody
java.lang.Exception
SecurityNotAvailableException

randomValue

public byte[] randomValue(long,
                          byte[])
                   throws java.lang.Exception,
                          SecurityNotAvailableException
Specified by:
randomValue in interface JiniBody
java.lang.Exception
SecurityNotAvailableException

receiveReply

public void receiveReply(Reply)
                  throws java.io.IOException
Description copied from interface: JiniBody
Receives a reply in response to a former request.

Specified by:
receiveReply in interface JiniBody
Throws:
java.io.IOException - if the reply cannot be accepted

receiveRequest

public void receiveRequest(Request)
                    throws java.io.IOException,
                           RenegotiateSessionException
Description copied from interface: JiniBody
Receives a request for later processing. The call to this method is non blocking unless the body cannot temporary receive the request.

Specified by:
receiveRequest in interface JiniBody
Throws:
java.io.IOException - if the request cannot be accepted
RenegotiateSessionException

secretKeyExchange

public byte[][] secretKeyExchange(long,
                                  byte[],
                                  byte[],
                                  byte[],
                                  byte[],
                                  byte[])
                           throws java.lang.Exception,
                                  SecurityNotAvailableException
Specified by:
secretKeyExchange in interface JiniBody
java.lang.Exception
SecurityNotAvailableException

setImmediateService

public void setImmediateService(java.lang.String)
                         throws java.io.IOException
Description copied from interface: JiniBody
For setting an immediate service for this body. An immediate service is a method that will bw excecuted by the calling thread.

Specified by:
setImmediateService in interface JiniBody
java.io.IOException

startNewSession

public long startNewSession(Communication)
                     throws java.io.IOException,
                            RenegotiateSessionException,
                            SecurityNotAvailableException
Specified by:
startNewSession in interface JiniBody
java.io.IOException
RenegotiateSessionException
SecurityNotAvailableException

terminateSession

public void terminateSession(long)
                      throws java.io.IOException,
                             SecurityNotAvailableException
Specified by:
terminateSession in interface JiniBody
java.io.IOException
SecurityNotAvailableException

updateLocation

public void updateLocation(UniqueID,
                           UniversalBody)
                    throws java.io.IOException
Description copied from interface: JiniBody
Signals to this body that the body identified by id is now to a new jini location. The body given in parameter is a new stub pointing to this new location. This call is a way for a body to signal to his peer that it has migrated to a new location

Specified by:
updateLocation in interface JiniBody
Parameters:
- the id of the body
- the stub to the new location
Throws:
java.io.IOException - if an exception occured during the jini communication


Copyright © April 2004 INRIA All Rights Reserved.