|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
public class UnicastRemoteObject
This class obtains stub that communicates with the remote object.
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| 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()
clone creates a shallow clone of this. |
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)
|
| 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 |
| Constructor Detail |
|---|
protected UnicastRemoteObject()
throws RemoteException
RemoteException - if the attempt to export the object failed.
protected UnicastRemoteObject(int port)
throws RemoteException
port - the port, on that the object should become available.
Zero means anonymous port.
RemoteException - if the attempt to export the object failed.
protected UnicastRemoteObject(int port,
RMIClientSocketFactory clientSocketFactory,
RMIServerSocketFactory serverSocketFactory)
throws RemoteException
port - the port, on that the object should become available.
Zero means anonymous port.clientSocketFactory - the client socket factoryserverSocketFactory - the server socket factory
RemoteException - if the attempt to export the object failed.
protected UnicastRemoteObject(RemoteRef ref)
throws RemoteException
RemoteException| Method Detail |
|---|
public Object clone()
throws CloneNotSupportedException
Object
clone in class ObjectCloneNotSupportedException - if this does not implement the
Cloneable interface.
public static RemoteStub exportObject(Remote obj)
throws RemoteException
obj - the object being exported.
RemoteException - if the attempt to export the object failed.
public static Remote exportObject(Remote obj,
int port)
throws RemoteException
obj - the object being exported.port - the remote object port
RemoteException - if the attempt to export the object failed.
public static Remote exportObject(Remote obj,
int port,
RMIClientSocketFactory csf,
RMIServerSocketFactory ssf)
throws RemoteException
RemoteException
public static boolean unexportObject(Remote obj,
boolean force)
throws NoSuchObjectException
NoSuchObjectException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||