<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.server.RemoteServer
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.RemoteObject.html#_top_">Previous</a>  <a href="java.rmi.server.RemoteStub.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.RemoteServer
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.rmi.server.RemoteObject.html#_top_">java.rmi.server.RemoteObject</a>
           |
           +----java.rmi.server.RemoteServer
</pre>
<hr>
<dl>
  <dt> public abstract class <b>RemoteServer</b>
  <dt> extends <a href="java.rmi.server.RemoteObject.html#_top_">RemoteObject</a>
</dl>
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). <p>
 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.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#RemoteServer()"><b>RemoteServer</b></a>()
  <dd> 
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#RemoteServer(java.rmi.server.RemoteRef)"><b>RemoteServer</b></a>(RemoteRef)
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getClientHost()"><b>getClientHost</b></a>()
  <dd>  Return the hostname of the current client.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLog()"><b>getLog</b></a>()
  <dd>  Returns stream for the RMI call log.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setLog(java.io.OutputStream)"><b>setLog</b></a>(OutputStream)
  <dd>  Log RMI calls to the output stream <I>out</I>.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="RemoteServer"></a>
<a name="RemoteServer()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>RemoteServer</b>
<pre>
 protected RemoteServer()
</pre>
<a name="RemoteServer(java.rmi.server.RemoteRef)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>RemoteServer</b>
<pre>
 protected RemoteServer(<a href="java.rmi.server.RemoteRef.html#_top_">RemoteRef</a> ref)
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getClientHost()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getClientHost"><b>getClientHost</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> getClientHost() throws <a href="java.rmi.server.ServerNotActiveException.html#_top_">ServerNotActiveException</a>
</pre>
<dl>
  <dd> 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.
<p>
  <dd><dl>
    <dt> <b>Throws:</b> <a href="java.rmi.server.ServerNotActiveException.html#_top_">ServerNotActiveException</a>
    <dd> If called outside of servicing
 a remote method invocation.
  </dl></dd>
</dl>
<a name="setLog(java.io.OutputStream)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setLog"><b>setLog</b></a>
<pre>
 public static void setLog(<a href="java.io.OutputStream.html#_top_">OutputStream</a> out)
</pre>
<dl>
  <dd> Log RMI calls to the output stream <I>out</I>. If <I>out</I> is
 null, call logging is turned off.
<p>
</dl>
<a name="getLog()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLog"><b>getLog</b></a>
<pre>
 public static <a href="java.io.PrintStream.html#_top_">PrintStream</a> getLog()
</pre>
<dl>
  <dd> Returns stream for the RMI call log.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="java.rmi.server.RemoteObject.html#_top_">Previous</a>  <a href="java.rmi.server.RemoteStub.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
