org.objectweb.carol.rmi.jrmp.server
Class JUnicastRemoteObject

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by org.objectweb.carol.rmi.jrmp.server.JUnicastRemoteObject
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote

public class JUnicastRemoteObject
extends java.rmi.server.RemoteServer

Class Extension of UnicastRemoteObject CAROL class ensuring the JRMP context propagation Unicast Reference ensuring context propagation with custom sockets

Version:
1.0, 15/07/2002
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Field Summary
protected  java.rmi.server.RMIClientSocketFactory csf
           
protected  java.rmi.server.RMIServerSocketFactory ssf
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected JUnicastRemoteObject(int p, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
protected JUnicastRemoteObject(int p, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
protected JUnicastRemoteObject(JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
 
Method Summary
 java.lang.Object clone()
           
protected  void exportObject(JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
static java.rmi.Remote exportObject(java.rmi.Remote obj, int p, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
static java.rmi.Remote exportObject(java.rmi.Remote obj, int p, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
static java.rmi.server.RemoteStub exportObject(java.rmi.Remote obj, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
protected static java.rmi.Remote exportObjectR(java.rmi.Remote obj, JUnicastServerRef serverRef)
          Real export object (localy and remotly)
static boolean unexportObject(java.rmi.Remote obj, boolean force)
          Real unexport Object (localy and remotly)
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

csf

protected java.rmi.server.RMIClientSocketFactory csf

ssf

protected java.rmi.server.RMIServerSocketFactory ssf
Constructor Detail

JUnicastRemoteObject

protected JUnicastRemoteObject(JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

JUnicastRemoteObject

protected JUnicastRemoteObject(int p,
                               JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

JUnicastRemoteObject

protected JUnicastRemoteObject(int p,
                               java.rmi.server.RMIClientSocketFactory csf,
                               java.rmi.server.RMIServerSocketFactory ssf,
                               JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
                        throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException
Method Detail

exportObject

protected void exportObject(JServerRequestInterceptor[] sis,
                            JClientRequestInterceptor[] cis)
                     throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

exportObject

public static java.rmi.server.RemoteStub exportObject(java.rmi.Remote obj,
                                                      JServerRequestInterceptor[] sis,
                                                      JClientRequestInterceptor[] cis)
                                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

exportObject

public static java.rmi.Remote exportObject(java.rmi.Remote obj,
                                           int p,
                                           JServerRequestInterceptor[] sis,
                                           JClientRequestInterceptor[] cis)
                                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

exportObject

public static java.rmi.Remote exportObject(java.rmi.Remote obj,
                                           int p,
                                           java.rmi.server.RMIClientSocketFactory csf,
                                           java.rmi.server.RMIServerSocketFactory ssf,
                                           JServerRequestInterceptor[] sis,
                                           JClientRequestInterceptor[] cis)
                                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

exportObjectR

protected static java.rmi.Remote exportObjectR(java.rmi.Remote obj,
                                               JUnicastServerRef serverRef)
                                        throws java.rmi.RemoteException
Real export object (localy and remotly)

Parameters:
obj -
serverRef -
params -
args -
Returns:
@throws RemoteException
Throws:
java.rmi.RemoteException

unexportObject

public static boolean unexportObject(java.rmi.Remote obj,
                                     boolean force)
                              throws java.rmi.NoSuchObjectException
Real unexport Object (localy and remotly)

Parameters:
obj -
force -
Returns:
@throws NoSuchObjectException
Throws:
java.rmi.NoSuchObjectException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException