Class java.rmi.server.UnicastRemoteObject
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.UnicastRemoteObject

Object
   |
   +----RemoteObject
           |
           +----RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteObject

public class UnicastRemoteObject
extends RemoteServer
The UnicastRemoteObject class defines a non-replicated remote object whose references are valid only while the server process is alive. The UnicastRemoteObject class provides support for point-to-point active object references (invocations, parameters, and results) using TCP streams.

Objects that require remote behavior should extend RemoteObject, typically via UnicastRemoteObject. If UnicastRemoteObject is not extended, the implementation class must then assume the responsibility for the correct semantics of the hashCode, equals, and toString methods inherited from the Object class, so that they behave appropriately for remote objects.


Constructor Index

 o java.rmi.server.UnicastRemoteObject()
Create and export a new UnicastRemoteObject object using an anonymous port.

Method Index

 o clone()
Returns a clone of the remote object that is distinct from the original.
 o exportObject(Remote)
Export the remote object to make it available to receive incoming calls.

Constructors

 o UnicastRemoteObject
protected UnicastRemoteObject() throws RemoteException
Create and export a new UnicastRemoteObject object using an anonymous port.

Methods

 o clone
public java.lang.Object clone() throws CloneNotSupportedException
Returns a clone of the remote object that is distinct from the original.

Returns:
the new remote object
Throws: CloneNotSupportedException
if clone failed due to a RemoteException.
Overrides:
clone in class Object
 o exportObject
public static java.rmi.server.RemoteStub exportObject(Remote obj) throws RemoteException
Export the remote object to make it available to receive incoming calls.

Parameters:
obj - the remote object to be exported
Throws: RemoteException
if export fails

All Packages  Class Hierarchy  This Package  Previous  Next  Index