public class RMIIIOPServerImpl extends RMIServerImpl
通过IIOP导出的RMIServerImpl ,并通过IIOP导出的RMI对象创建客户端连接。 用户代码通常不直接引用此类。
RMIServerImpl
| Constructor and Description |
|---|
RMIIIOPServerImpl(Map<String,?> env)
创建一个新的 RMIServerImpl 。
|
| Modifier and Type | Method and Description |
|---|---|
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存根。
|
clientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServerpublic RMIIIOPServerImpl(Map<String,?> env) throws IOException
创建一个新的RMIServerImpl 。
env - 包含新的RMIServerImpl 。
可以为空,这相当于一个空的地图。
IOException - 如果无法创建RMI对象。
protected void export()
throws IOException
RMIServerImpl
导出此RMI对象。
export在
RMIServerImpl
IOException - 如果此RMI对象无法导出。
protected String getProtocol()
RMIServerImpl
返回此对象的协议字符串。 该字符串是rmi为RMI / JRMP和iiop为RMI / IIOP。
getProtocol在
RMIServerImpl
public Remote toStub() throws IOException
返回一个IIOP存根。
存根可能尚未连接到ORB。 只有当存根连接到ORB时,存根才可序列化。toStub在
RMIServerImpl
IOException - 如果无法创建存根 - 例如RMIIIOPServerImpl尚未导出。
protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
通过IIOP导出的RMI对象创建新的客户端连接。
makeClient在
RMIServerImpl
connectionId - 新连接的ID。
此连接器服务器打开的每个连接将具有不同的ID。
如果此参数为空,则该行为是未指定的。
subject - 认证主题。
可以为null。
RMIConnection 。
IOException - 如果新的客户端对象无法创建或导出。
protected void closeClient(RMIConnection client) throws IOException
RMIServerImpl
关闭由makeClient制作的客户端连接 。
closeClient在
RMIServerImpl
client - 之前由makeClient返回的makeClient ,其上没有调用closeClient方法。
如果违反这些条件,行为是未指定的,包括client为空的情况。
IOException - 如果客户端连接不能关闭。
protected void closeServer()
throws IOException
由RMIServerImpl.close()调用,通过取消导出该对象来关闭连接器服务器。 从此方法返回后,连接器服务器不能接受任何新的连接。
closeServer在
RMIServerImpl
IOException - 如果尝试关闭连接器服务器失败。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.