ibis.rmi.server
Class UnicastRemoteObject
java.lang.Object
ibis.rmi.server.RemoteObject
ibis.rmi.server.RemoteServer
ibis.rmi.server.UnicastRemoteObject
- All Implemented Interfaces:
- Remote, java.io.Serializable
- public class UnicastRemoteObject
- extends RemoteServer
The UnicastRemoteObject
class defines a remote object
that is only valid while its server process is alive.
A remote object should extend RemoteObject
, usually by
extending UnicastRemoteObject
.
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
Returns a clone of the remote object. |
static RemoteStub |
exportObject(Remote obj)
Exports the remote object to allow it to receive incoming calls. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a clone of the remote object.
- Returns:
- the new remote object
- Throws:
java.lang.CloneNotSupportedException
- if clone failed due to
a RemoteException
exportObject
public static RemoteStub exportObject(Remote obj)
throws RemoteException
- Exports the remote object to allow it to receive incoming calls.
- Parameters:
obj
- the remote object to be exported
- Returns:
- the remote object stub
- Throws:
RemoteException
- if the export fails
The Ibis project