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

Class java.rmi.server.UnicastRemoteServer

java.lang.Object
   |
   +----java.rmi.server.RemoteObject
           |
           +----java.rmi.server.RemoteServer
                   |
                   +----java.rmi.server.UnicastRemoteServer

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

All objects that require remote behavior must be extended from RemoteObject, typically via UnicastRemoteServer. If UnicastRemoteServer 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 UnicastRemoteServer()
Create and export a new UnicastRemoteServer object using the default port
 o UnicastRemoteServer(int)
Create and export a new UnicastRemoteServer object on the specified port.

Method Index

 o exportObject(Remote)
Find or create a client stub object for the supplied Remote.
 o exportObject(Remote, int)
Find or create the stub for this remote object.

Constructors

 o UnicastRemoteServer
  public UnicastRemoteServer() throws RemoteException
Create and export a new UnicastRemoteServer object using the default port
 o UnicastRemoteServer
  public UnicastRemoteServer(int port) throws RemoteException
Create and export a new UnicastRemoteServer object on the specified port.

Methods

 o exportObject
  public static RemoteStub exportObject(Remote obj) throws RemoteException
Find or create a client stub object for the supplied Remote.
 o exportObject
  public static RemoteStub exportObject(Remote obj,
                                        int port) throws RemoteException
Find or create the stub for this remote object. If it has not yet been exported, use the port and assign it an objid

All Packages  Class Hierarchy  This Package  Previous  Next  Index