Class java.rmi.server.RemoteServer
All Packages Class Hierarchy This Package Previous Next Index
Class java.rmi.server.RemoteServer
Object
|
+----RemoteObject
|
+----java.rmi.server.RemoteServer
- public abstract class RemoteServer
- extends RemoteObject
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 UnicastRemoteObject is supported.
-
java.rmi.server.RemoteServer()
-
-
java.rmi.server.RemoteServer(RemoteRef)
-
-
getClientHost()
- Return the hostname of the current client.
-
getLog()
- Returns stream for the RMI call log.
-
setLog(OutputStream)
- Log RMI calls to the output stream out.
RemoteServer
protected RemoteServer()
RemoteServer
protected RemoteServer(RemoteRef ref)
getClientHost
public static java.lang.String getClientHost() throws ServerNotActiveException
- Return the hostname of the current client. When called from a
thread actively handling a remote method invocation the
hostname of the client is returned.
- Throws: ServerNotActiveException
- If called outside of servicing
a remote method invocation.
getLog
public static java.io.PrintStream getLog()
- Returns stream for the RMI call log.
setLog
public static void setLog(OutputStream out)
- Log RMI calls to the output stream out. If out is
null, call logging is turned off.
All Packages Class Hierarchy This Package Previous Next Index