| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.remote.rmi.RMIServerImpl
javax.management.remote.rmi.RMIIIOPServerImpl
public class RMIIIOPServerImpl
     
一个 RMIServerImpl,它通过 IIOP 导出,并可创建如同由 IIOP 导出的 RMI 对象的客户端连接。用户代码不经常直接引用此类。
RMIServerImpl
   | 构造方法摘要 | |
|---|---|
| RMIIIOPServerImpl(Map<String,?> env)创建新的 RMIServerImpl。 | |
| 方法摘要 | |
|---|---|
| protected  void | closeClient(RMIConnection client)关闭由 makeClient建立的客户端连接。 | 
| protected  void | closeServer()由 RMIServerImpl.close()调用以通过取消导出此对象关闭连接器服务器。 | 
| protected  void | export()导出此 RMI 对象。 | 
| protected  String | getProtocol()返回该对象的协议字符串。 | 
| protected  RMIConnection | makeClient(String connectionId, Subject subject)创建一个如同从 IIOP 导出的 RMI 对象的新客户端连接。 | 
|  Remote | toStub()返回一个 IIOP stub。 | 
| 从类 javax.management.remote.rmi.RMIServerImpl 继承的方法 | 
|---|
| clientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServer | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public RMIIIOPServerImpl(Map<String,?> env)
                  throws IOException 
  创建新的 RMIServerImpl。
env - 包含新的 
      RMIServerImpl 属性的环境。可以为 null,它等效于一个空映射。 
     IOException - 如果无法创建 RMI 对象。
     | 方法详细信息 | 
|---|
protected void export()
               throws IOException 
  RMIServerImpl 复制的描述
   导出此 RMI 对象。
RMIServerImpl 中的 
      export
     IOException - 如果无法导出此 RMI 对象。
     protected String getProtocol()
RMIServerImpl 复制的描述
   返回该对象的协议字符串。对于 RMI/JRMP,该字符串为 rmi;对于 RMI/IIOP,该字符串为 iiop。 
RMIServerImpl 中的 
      getProtocol
     
public Remote toStub()
              throws IOException 
  返回一个 IIOP stub。
此 stub 可能还无法连接到 ORB。只有当 stub 连接到 ORB 时,它才变得可序列化。
RMIServerImpl 中的 
      toStub
     IOException - 如果无法创建 stub,例如 RMIIIOPServerImpl 尚未导出。
     
protected RMIConnection makeClient(String connectionId,
                                   Subject subject)
                            throws IOException 
  创建一个如同从 IIOP 导出的 RMI 对象的新客户端连接。
RMIServerImpl 中的 
      makeClient
     connectionId - 新连接的 ID。由此连接器服务器打开的每个连接将具有不同的 ID。如果此参数为 null,则行为不明确。
     subject - 经验证的主题。可以为 null。 
     RMIConnection。 
     IOException - 如果无法创建或导出新的客户端对象。
     
protected void closeClient(RMIConnection client)
                    throws IOException 
  RMIServerImpl 复制的描述
   关闭由 makeClient 建立的客户端连接。 
RMIServerImpl 中的 
      closeClient
     client - 由 
      makeClient 以前返回的一个连接,以前尚未在其上调用过 
      closeClient 方法。如果违反这些条件,包括 
      client 为 null 的情况,则行为不明确。 
     IOException - 如果无法关闭客户端连接。
     
protected void closeServer()
                    throws IOException 
  由 RMIServerImpl.close() 调用以通过取消导出此对象关闭连接器服务器。从此方法返回后,连接器服务器不接受任何新的连接。
RMIServerImpl 中的 
      closeServer
     IOException - 如果关闭连接器服务器的尝试失败。
     | 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。