站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

Class java.rmi.server.RemoteServer - JDK 5 Documentation v1.1.8, Java 2 SDK 英文文档

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 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.


Constructor Index

 o RemoteServer()
 o RemoteServer(RemoteRef)

Method Index

 o getClientHost()
Return the hostname of the current client.
 o getLog()
Returns stream for the RMI call log.
 o setLog(OutputStream)
Log RMI calls to the output stream out.

Constructors

 o RemoteServer
 protected RemoteServer()
 o RemoteServer
 protected RemoteServer(RemoteRef ref)

Methods

 o getClientHost
 public static 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.
 o setLog
 public static void setLog(OutputStream out)
Log RMI calls to the output stream out. If out is null, call logging is turned off.

 o getLog
 public static PrintStream getLog()
Returns stream for the RMI call log.


All Packages  Class Hierarchy  This Package  Previous  Next  Index

Submit a bug or feature - Version 1.1.8 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.