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

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byorg.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
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 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)
          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

JUnicastRemoteObject

protected JUnicastRemoteObject(int p,
                               JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
                        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
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 -
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
Throws:
java.lang.CloneNotSupportedException

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