java.lang.Cloneable, java.rmi.Remotepublic class UnicastRemoteObject extends RemoteServer implements java.lang.Cloneable
java.rmi.* package.| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
clone() |
Returns a clone of the remote object that is distinct from
the original.
|
static java.rmi.Remote |
exportObject(java.rmi.Remote obj) |
Exports a remote object so it is available to receive incoming
calls using a server port.
|
static boolean |
unexportObject(java.lang.Object obj,
boolean force) |
Removes a remote object from the RMI runtime.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStubgetClientHost, getLog, setLogpublic static java.rmi.Remote exportObject(java.rmi.Remote obj)
throws java.rmi.RemoteException
obj - the remote object to be exported.java.rmi.RemoteException - if the export fails.public static boolean unexportObject(java.lang.Object obj,
boolean force)
throws java.rmi.NoSuchObjectException
true, the object is removed
even if there are pending calls to the remote object or if the
remote object has calls in progress.false, the object is removed only if there are
no pending or in progress calls to the object.obj - the remote object to be removed.force - if true, removes the object even if there are
pending or in-progress calls; if false, removes the object
if there are no pending or in-progress calls.java.rmi.NoSuchObjectException - if the remote object is not
exported.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the clone failed due to
a RemoteException.