当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)

类 java.rmi.server.RemoteServer

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

public abstract class RemoteServer
extends RemoteObject
下列类的超类:
UnicastRemoteObject

RemoteServer 类是所有服务器实现的公共超类,并且提供支持大范围的远程引用语义的框架。但是用来生成和输出远程对象的函数(例如使它们远程可用)由 RemoteServer 类抽象地提供并由它的子类具体地提供。

所选择的子类标识远程引用的语义,例如服务器是一简单对象还是一需要多点通信的复制对象。 目前仅支持 UnicastRemoteObject 类。


构造子索引

RemoteServer()
RemoteServer(RemoteRef)

方法索引

getClientHost()
返回当前客户机的主机名。
getLog()
返回 RMI 调用日志流。
setLog(OutputStream)
记录对输出流 out 的 RMI 调用。

构造子

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

方法

getClientHost
 public static String getClientHost() throws ServerNotActiveException
返回当前客户机的主机名。 当从一处理远程方法唤醒的线程调用时返回客户机的主机名。

抛出: ServerNotActiveException
如果在远程方法唤醒的服务之外调用时。
setLog
 public static void setLog(OutputStream out)
记录对输出流 out 的 RMI 调用。 如果 out 为 null, 则关闭调用日志。

getLog
 public static PrintStream getLog()
返回 RMI 调用日志流。


当前位置 类层次 (JDK) 所有类 (JDK) 所有域和方法 (JDK)