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

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

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 TO BE CHANGE, MORE SIMPLE CODING !!!!
Author:
Guillaume Riviere (Guillaume.Riviere@inrialpes.fr)
See Also:
Serialized Form

Field Summary
protected  java.rmi.server.RMIClientSocketFactory csf
           
protected static java.lang.Class[] exportObjectParamType
           
protected static java.lang.Class[] exportObjectWithFactoryParamType
           
protected  int port
           
protected  java.rmi.server.RMIServerSocketFactory ssf
           
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
protected JUnicastRemoteObject(int port, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
protected JUnicastRemoteObject(int port, 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 port, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
           
static java.rmi.Remote exportObject(java.rmi.Remote obj, int port, 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 exportObject(java.rmi.Remote obj, java.lang.String refClassName, java.lang.Class[] params, java.lang.Object[] args)
           
static JUnicastThreadFactory getDefaultThreadFactory()
          get the current default thread factory
static void setDefaultThreadFactory(JUnicastThreadFactory factory)
          set the default thread factory to to used when dispatching the call.
static boolean unexportObject(java.rmi.Remote obj, boolean force)
           
 
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

port

protected int port

csf

protected java.rmi.server.RMIClientSocketFactory csf

ssf

protected java.rmi.server.RMIServerSocketFactory ssf

exportObjectParamType

protected static final java.lang.Class[] exportObjectParamType

exportObjectWithFactoryParamType

protected static final java.lang.Class[] exportObjectWithFactoryParamType
Constructor Detail

JUnicastRemoteObject

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

JUnicastRemoteObject

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

JUnicastRemoteObject

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

clone

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

exportObject

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

exportObject

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

exportObject

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

exportObject

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

unexportObject

public static boolean unexportObject(java.rmi.Remote obj,
                                     boolean force)
                              throws java.rmi.NoSuchObjectException
java.rmi.NoSuchObjectException

exportObject

protected static java.rmi.Remote exportObject(java.rmi.Remote obj,
                                              java.lang.String refClassName,
                                              java.lang.Class[] params,
                                              java.lang.Object[] args)
                                       throws java.rmi.RemoteException
java.rmi.RemoteException

setDefaultThreadFactory

public static void setDefaultThreadFactory(JUnicastThreadFactory factory)
set the default thread factory to to used when dispatching the call. No new thread is created when the factory is null


getDefaultThreadFactory

public static JUnicastThreadFactory getDefaultThreadFactory()
get the current default thread factory