ibis.rmi.server
Class UnicastRemoteObject

java.lang.Object
  extended by ibis.rmi.server.RemoteObject
      extended by ibis.rmi.server.RemoteServer
          extended by ibis.rmi.server.UnicastRemoteObject
All Implemented Interfaces:
Remote, 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
 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 ibis.rmi.server.RemoteServer
getClientHost
 
Methods inherited from class ibis.rmi.server.RemoteObject
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Returns a clone of the remote object.

Overrides:
clone in class Object
Returns:
the new remote object
Throws:
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