public interface RMIContext
Modifier and Type | Method and Description |
---|---|
RemoteStub |
export(Remote obj,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
Exports a remote object on the specified port.
|
boolean |
unexport(Remote obj,
boolean force)
Unexports the specified remote object.
|
RemoteStub export(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
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.boolean unexport(Remote obj, boolean force) throws NoSuchObjectException
obj
- the remote object to be unexported;force
- whether the object should be forcibly unexported or not.NoSuchObjectException
- if something goes wrong.