org.objectweb.carol.rmi.jrmp.server

Class JUnicastRemoteObject


public class JUnicastRemoteObject
extends 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)

Field Summary

protected RMIClientSocketFactory
csf
protected RMIServerSocketFactory
ssf

Constructor Summary

JUnicastRemoteObject(int p, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
JUnicastRemoteObject(int p, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
JUnicastRemoteObject(JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)

Method Summary

Object
clone()
static Remote
exportObject(Remote obj, int p, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
static Remote
exportObject(Remote obj, int p, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
static RemoteStub
exportObject(Remote obj, JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
protected void
exportObject(JServerRequestInterceptor[] sis, JClientRequestInterceptor[] cis)
protected static Remote
exportObjectR(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(Remote obj, boolean force)
Real unexport Object (localy and remotly)

Field Details

csf

protected RMIClientSocketFactory csf


ssf

protected RMIServerSocketFactory ssf

Constructor Details

JUnicastRemoteObject

protected JUnicastRemoteObject(int p,
                               RMIClientSocketFactory csf,
                               RMIServerSocketFactory ssf,
                               JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
            throws RemoteException


JUnicastRemoteObject

protected JUnicastRemoteObject(int p,
                               JServerRequestInterceptor[] sis,
                               JClientRequestInterceptor[] cis)
            throws RemoteException


JUnicastRemoteObject

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

Method Details

clone

public Object clone()
            throws CloneNotSupportedException


exportObject

public static Remote exportObject(Remote obj,
                                  int p,
                                  RMIClientSocketFactory csf,
                                  RMIServerSocketFactory ssf,
                                  JServerRequestInterceptor[] sis,
                                  JClientRequestInterceptor[] cis)
            throws RemoteException


exportObject

public static Remote exportObject(Remote obj,
                                  int p,
                                  JServerRequestInterceptor[] sis,
                                  JClientRequestInterceptor[] cis)
            throws RemoteException


exportObject

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


exportObject

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


exportObjectR

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

Parameters:
obj -
serverRef -

Returns:


getDefaultThreadFactory

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


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


unexportObject

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

Parameters:
obj -
force -

Returns: