| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
public abstract class RemoteServer
      该 RemoteServer 类是服务器实现的公共超类,并提供支持大量远程引用语义的框架。需要特别指出的是,创建和导出远程对象所需的功能(即使其远程可用)理论上由 RemoteServer 提供,具体由其子类提供。 
| 字段摘要 | 
|---|
| 从类 java.rmi.server.RemoteObject 继承的字段 | 
|---|
| ref | 
| 构造方法摘要 | |
|---|---|
| protected  | RemoteServer()构造一个 RemoteServer。 | 
| protected  | RemoteServer(RemoteRef ref)构造带指定引用类型的 RemoteServer。 | 
| 方法摘要 | |
|---|---|
| static String | getClientHost()返回一个客户机主机的字符串表示形式,用于在当前线程中正在处理的远程方法调用。 | 
| static PrintStream | getLog()返回用于 RMI 调用日志的流。 | 
| static void | setLog(OutputStream out)将 RMI 调用记录到输出流 out中。 | 
| 从类 java.rmi.server.RemoteObject 继承的方法 | 
|---|
| equals, getRef, hashCode, toString, toStub | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
protected RemoteServer()
RemoteServer。 
    
protected RemoteServer(RemoteRef ref)
RemoteServer。 
    
ref - 远程引用
     | 方法详细信息 | 
|---|
public static String getClientHost()
                            throws ServerNotActiveException 
  
ServerNotActiveException - 如果在当前线程中没有处理远程方法调用
     public static void setLog(OutputStream out)
out 中。如果 
    out 为 
    null,则关闭调用日志记录。 
    如果存在安全管理器,则其 checkPermission 方法将用 java.util.logging.LoggingPermission("control") 权限调用;这可能会导致 SecurityException。 
out - 应该将 RMI 调用记录到其中的输出流 
     SecurityException - 如果存在安全管理器且其 
      checkPermission 方法的调用失败
     getLog()
     public static PrintStream getLog()
setLog(java.io.OutputStream)
     | 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。