- java.lang.Object
 -  
      
- javax.management.remote.rmi.RMIServerImpl
 -  
        
- javax.management.remote.rmi.RMIJRMPServerImpl
 
 
 
-  
       
- 实现的所有接口
 -  
         
Closeable,AutoCloseable,Remote,RMIServer 
public class RMIJRMPServerImpl extends RMIServerImpl
通过JRMP导出并通过JRMP导出的RMI对象创建客户端连接的
RMIServer对象。 用户代码通常不直接引用此类。- 从以下版本开始:
 - 1.5
 - 另请参见:
 -  
         
RMIServerImpl 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String,?> env)创建一个新的RMIServer对象,该对象将使用给定的套接字工厂在给定端口上导出。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 protected voidcloseServer()由RMIServerImpl.close()调用以通过 取消导出此对象来关闭连接器服务器。protected RMIConnectionmakeClient(String connectionId, Subject subject)创建新的客户端连接作为通过JRMP导出的RMI对象。RemotetoStub()返回此RMIServer对象的可序列化存根。-  
               
声明方法的类 javax.management.remote.rmi.RMIServerImpl
clientClosed, close, closeClient, export, getDefaultClassLoader, getMBeanServer, getProtocol, newClient, setDefaultClassLoader, setMBeanServer 
-  
               
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
-  
               
声明方法的接口 javax.management.remote.rmi.RMIServer
getVersion 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
RMIJRMPServerImpl
public RMIJRMPServerImpl(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf, Map<String,?> env) throws IOException创建一个新的
RMIServer对象,该对象将使用给定的套接字工厂在给定端口上导出。- 参数
 -  
              
port- 将导出此对象及其创建的RMIConnectionImpl对象的端口。 可以为零,表示任何可用端口。 -  
              
csf- 已创建的RMI对象的客户端套接字工厂。 可以为null。 -  
              
ssf- 已创建的RMI对象的服务器套接字工厂。 可以为null。 -  
              
env- 环境地图。 可以为null。 - 异常
 -  
              
IOException- 如果无法创建RMIServer对象。 -  
              
IllegalArgumentException- 如果port为负数。 
 
 -  
 
-  
             
方法详细信息
-  
toStub
public Remote toStub() throws IOException
返回此
RMIServer对象的可序列化存根。- Specified by:
 -  
              
toStub类RMIServerImpl - 结果
 - 可序列化的存根。
 - 异常
 -  
              
IOException- 如果无法获取存根 - 例如,尚未导出RMIJRMPServerImpl。 
 
-  
makeClient
protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
创建新的客户端连接作为通过JRMP导出的RMI对象。 新
RMIConnection对象的端口和套接字工厂是提供给RMIJRMPServerImpl构造函数的RMIJRMPServerImpl。- Specified by:
 -  
              
makeClient,类RMIServerImpl - 参数
 -  
              
connectionId- 新连接的ID。 此连接器服务器打开的每个连接都将具有不同的ID。 如果此参数为null,则不指定行为。 -  
              
subject- 经过身份验证的主题。 可以为null。 - 结果
 - 
               新创建的 
              
RMIConnection。 - 异常
 -  
              
IOException- 如果无法创建或导出新的RMIConnection对象。 
 
-  
closeServer
protected void closeServer() throws IOException由
RMIServerImpl.close()调用以通过取消导出此对象来关闭连接器服务器。 从此方法返回后,连接器服务器不能接受任何新连接。- Specified by:
 -  
              
closeServer类RMIServerImpl - 异常
 -  
              
IOException- 如果尝试关闭连接器服务器失败。 
 
 -  
 
 -