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

Class java.rmi.server.RemoteServer

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

public class RemoteServer
extends RemoteObject
implements RemoteProxy
The RemoteServer class is the common superclass to all server implementations and provides the framework to support a wide range of remote reference semantics. Specifically, the functions needed to create and export remote objects (i.e. to make them remotely available) are provided abstractly by RemoteServer and concretely by its subclass(es).

The subclass selected identifies the semantics of the remote reference, for example whether the server is a single object or is a replicated object requiring communications with multiple locations. At present only UnicastRemoteServer is supported.


Constructor Index

 o RemoteServer()
 o RemoteServer(RemoteRef)

Method Index

 o getClientHost()
 o getClientPort()
Return the port number of the current client.
 o getProxy()
Used solely by the implementation.
 o getProxy(Remote)
Used solely by the implementation.
 o getSkeleton(Remote)
Used solely by the implementation.

Constructors

 o RemoteServer
  protected RemoteServer()
 o RemoteServer
  protected RemoteServer(RemoteRef rep)

Methods

 o getClientHost
  public static String getClientHost() throws ServerNotActiveException
 o getClientPort
  public static int getClientPort() throws ServerNotActiveException
Return the port number of the current client. When called from a thread actively handling a remote method invocation the port number of the client is returned. Otherwise, the ServerNotActiveException is thrown.
 o getProxy
  public RemoteStub getProxy() throws StubNotFoundException, RemoteException
Used solely by the implementation.
 o getProxy
  public static RemoteStub getProxy(Remote obj) throws RemoteException
Used solely by the implementation.
 o getSkeleton
  public static Skeleton getSkeleton(Remote object) throws SkeletonNotFoundException
Used solely by the implementation.

All Packages  Class Hierarchy  This Package  Previous  Next  Index