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.
-
RemoteServer()
-
-
RemoteServer(RemoteRef)
-
-
getClientHost()
-
-
getClientPort()
- Return the port number of the current client.
-
getProxy()
- Used solely by the implementation.
-
getProxy(Remote)
- Used solely by the implementation.
-
getSkeleton(Remote)
- Used solely by the implementation.
RemoteServer
protected RemoteServer()
RemoteServer
protected RemoteServer(RemoteRef rep)
getClientHost
public static String getClientHost() throws ServerNotActiveException
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.
getProxy
public RemoteStub getProxy() throws StubNotFoundException, RemoteException
- Used solely by the implementation.
getProxy
public static RemoteStub getProxy(Remote obj) throws RemoteException
- Used solely by the implementation.
getSkeleton
public static Skeleton getSkeleton(Remote object) throws SkeletonNotFoundException
- Used solely by the implementation.
All Packages Class Hierarchy This Package Previous Next Index