java.rmi.server
public class UnicastRemoteObject extends RemoteServer
Constructor Summary | |
---|---|
protected | UnicastRemoteObject()
Create and export new remote object without specifying the port value.
|
protected | UnicastRemoteObject(int port)
Create and export the new remote object, making it available at the
given port, local host.
|
protected | UnicastRemoteObject(int port, RMIClientSocketFactory clientSocketFactory, RMIServerSocketFactory serverSocketFactory)
Create and export the new remote object, making it available at the
given port, using sockets, produced by the specified factories.
|
protected | UnicastRemoteObject(RemoteRef ref) |
Method Summary | |
---|---|
Object | clone() |
static RemoteStub | exportObject(Remote obj)
Export object, making it available for the remote calls at the
anonymous port.
|
static Remote | exportObject(Remote obj, int port)
Export object, making it available for the remote calls at the
specified port.
|
static Remote | exportObject(Remote obj, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
FIXME |
static boolean | unexportObject(Remote obj, boolean force) |
Throws: RemoteException if the attempt to export the object failed.
Parameters: port the port, on that the object should become available. Zero means anonymous port.
Throws: RemoteException if the attempt to export the object failed.
Parameters: port the port, on that the object should become available. Zero means anonymous port. clientSocketFactory the client socket factory serverSocketFactory the server socket factory
Throws: RemoteException if the attempt to export the object failed.
Parameters: obj the object being exported.
Returns: the remote object stub
Throws: RemoteException if the attempt to export the object failed.
Parameters: obj the object being exported. port the remote object port
Returns: the remote object stub
Throws: RemoteException if the attempt to export the object failed.