- java.lang.Object
-
- javax.management.remote.rmi.RMIServerImpl
-
- javax.management.remote.rmi.RMIIIOPServerImpl
-
- All Implemented Interfaces:
-
Closeable,AutoCloseable,Remote,RMIServer
已过时。此运输已不再受支持。
@Deprecated public class RMIIIOPServerImpl extends RMIServerImpl
通过IIOP导出的
RMIServerImpl,并通过IIOP导出的RMI对象创建客户端连接。 用户代码通常不直接引用此类。- 从以下版本开始:
- 1.5
- 另请参见:
-
RMIServerImpl
-
-
构造方法摘要
构造方法 Constructor 描述 RMIIIOPServerImpl(Map<String,?> env)已过时。
-
方法摘要
所有方法 接口方法 具体的方法 弃用的方法 Modifier and Type 方法 描述 protected voidcloseClient(RMIConnection client)已过时。关闭由makeClient制造的客户端连接。protected voidcloseServer()已过时。调用RMIServerImpl.close()关闭连接器服务器。protected voidexport()已过时。导出此RMI对象。protected StringgetProtocol()已过时。返回此对象的协议字符串。protected RMIConnectionmakeClient(String connectionId, Subject subject)已过时。创建一个新的客户端连接。RemotetoStub()已过时。返回此服务器对象的远程存根。-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from class javax.management.remote.rmi.RMIServerImpl
clientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServer
-
-
-
-
构造方法详细信息
-
RMIIIOPServerImpl
public RMIIIOPServerImpl(Map<String,?> env) throws IOException
已过时。- 参数
-
env- 包含新的RMIServerImpl属性的环境。 可以为空,这相当于一个空的地图。 - 异常
-
IOException- 如果无法创建RMI对象。
-
-
方法详细信息
-
export
protected void export() throws IOException已过时。描述从类别复制RMIServerImpl导出此RMI对象。
- Specified by:
-
export在RMIServerImpl - 异常
-
IOException- 如果此RMI对象无法导出。
-
getProtocol
protected String getProtocol()
已过时。描述从类复制:RMIServerImpl返回此对象的协议字符串。 RMI / JRMP的字符串为
rmi。- Specified by:
-
getProtocol在RMIServerImpl - 结果
- 该对象的协议字符串。
-
toStub
public Remote toStub() throws IOException
已过时。描述从类别复制RMIServerImpl返回此服务器对象的远程存根。- Specified by:
-
toStub在RMIServerImpl - 结果
- 一个遥远的短桩
- 异常
-
IOException- 如果无法获取存根 - 例如RMIServerImpl尚未导出。
-
makeClient
protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
已过时。描述从类复制:RMIServerImpl创建一个新的客户端连接。 该方法由公共方法
RMIServerImpl.newClient(Object)调用 。- Specified by:
-
makeClient在RMIServerImpl - 参数
-
connectionId- 新连接的ID。 此连接器服务器打开的每个连接将具有不同的ID。 如果此参数为空,则该行为是未指定的。 -
subject- 认证主题。 可以为null。 - 结果
-
新创
RMIConnection。 - 异常
-
IOException- 如果无法创建或导出新的客户端对象。
-
closeClient
protected void closeClient(RMIConnection client) throws IOException
已过时。描述从类复制:RMIServerImpl关闭由
makeClient制造的客户端连接。- Specified by:
-
closeClient在RMIServerImpl - 参数
-
client- 之前由makeClient返回的closeClient方法以前未被调用的连接。 如果这些条件被违反,行为是未指定的,包括client为空的情况。 - 异常
-
IOException- 如果客户端连接不能关闭。
-
closeServer
protected void closeServer() throws IOException已过时。描述从类别复制RMIServerImpl调用
RMIServerImpl.close()关闭连接器服务器。 从此方法返回后,连接器服务器不能接受任何新的连接。- Specified by:
-
closeServer在RMIServerImpl - 异常
-
IOException- 如果尝试关闭连接器服务器失败。
-
-