public class SOAContext extends Object implements RMIContext
object adapter
.Constructor and Description |
---|
SOAContext(JRMIBFactory binder,
org.objectweb.jonathan.apis.kernel.ContextFactory context_factory) |
Modifier and Type | Method and Description |
---|---|
static RemoteStub |
export(Remote impl,
org.objectweb.jonathan.apis.kernel.Context hints,
JRMIBFactory binder,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Exports the given remote object to the object adapter, and then
recursively to the given binding factory.
|
RemoteStub |
export(Remote obj,
int port,
boolean daemon,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Exports a remote object on the specified port.
|
RemoteStub |
export(Remote obj,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Exports a remote object on the specified port.
|
static Remote |
toStub(Remote impl)
Returns the Jeremie stub for the given remote object.
|
boolean |
unexport(Remote obj,
boolean force)
Unexports the specified remote object.
|
static void |
unexport(Remote impl,
JRMIBFactory binder)
Unexports the given remote object from the object adapter and the given
binding factory.
|
public SOAContext(JRMIBFactory binder, org.objectweb.jonathan.apis.kernel.ContextFactory context_factory)
public RemoteStub export(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
export
in interface RMIContext
obj
- the remote object to be exported;port
- the port on which to export the object;csf
- the client socket factory supplying sockets for client-side
connections to the remote object;ssf
- the server socket factory supplying a server side socket.RemoteException
- if something goes wrong.public RemoteStub export(Remote obj, int port, boolean daemon, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
obj
- the remote object to be exported;port
- the port on which to export the object;daemon
- indicates that only daemon threads should be created during the export process.csf
- the client socket factory supplying sockets for client-side
connections to the remote object;ssf
- the server socket factory supplying a server side socket.RemoteException
- if something goes wrong.public boolean unexport(Remote obj, boolean force)
unexport
in interface RMIContext
obj
- the remote object to be unexported;force
- whether the object should be forcibly unexported or not.public static RemoteStub export(Remote impl, org.objectweb.jonathan.apis.kernel.Context hints, JRMIBFactory binder, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
impl
- the remote object to be exported;hints
- other data that may be useful for the export;binder
- a binding factory.java.rmi
- RemoteException if something goes wrong.RemoteException
public static void unexport(Remote impl, JRMIBFactory binder)
impl
- the remote object to unexport;binder
- a binding factory.public static Remote toStub(Remote impl) throws NoSuchObjectException
impl
- the remote object whose stub is requiredNoSuchObjectException
- if the remote object had not
been previously exported to Jeremie.