模块 java.rmi

类 RemoteServer

java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
所有已实现的接口:
Serializable , Remote
已知子类:
UnicastRemoteObject

public abstract class RemoteServer extends RemoteObject
RemoteServer 类是服务实现的通用超类,它提供了支持范围广泛的远程引用语义的框架。具体来说,创建和导出远程对象(即使它们远程可用)所需的函数由RemoteServer 抽象提供,具体由其子类提供。
自从:
1.1
参见:
  • 构造方法详细信息

    • RemoteServer

      protected RemoteServer()
      构造一个 RemoteServer
      自从:
      1.1
    • RemoteServer

      protected RemoteServer(RemoteRef  ref)
      构造具有给定引用类型的 RemoteServer
      参数:
      ref - 远程引用
      自从:
      1.1
  • 方法详情

    • getClientHost

      public static String  getClientHost() throws ServerNotActiveException
      返回当前线程中正在处理的远程方法调用的客户端主机的字符串表示形式。
      返回:
      客户端主机的字符串表示
      抛出:
      ServerNotActiveException - 如果当前线程中没有处理远程方法调用
      自从:
      1.1
    • setLog

      public static void setLog(OutputStream  out)
      将 RMI 调用记录到输出流 out 。如果 outnull ,则关闭呼叫记录。

      如果有安全管理器,它的checkPermission方法将以java.util.logging.LoggingPermission("control")权限被调用;这可能会导致 SecurityException

      参数:
      out - 应记录 RMI 调用的输出流
      抛出:
      SecurityException - 如果存在安全管理器并且调用其 checkPermission 方法失败
      自从:
      1.1
      参见:
    • getLog

      public static PrintStream  getLog()
      返回 RMI 调用日志的流。
      返回:
      通话记录
      自从:
      1.1
      参见: