public class RMIIIOPServerImpl extends RMIServerImpl
一个RMIServerImpl
是出口通过IIOP和创造为RMI对象的出口通过IIOP的客户端连接。用户代码通常不直接引用这个类。
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() 通过unexporting这个对象关闭连接器服务器。
|
protected void |
export()
出口这个RMI对象。
|
protected String |
getProtocol()
返回此对象的协议字符串。
|
protected RMIConnection |
makeClient(String connectionId, Subject subject)
创建一个新的客户端连接作为一个RMI对象出口通过IIOP。
|
Remote |
toStub()
返回一个IIOP存根。
|
clientClosed, close, getDefaultClassLoader, getMBeanServer, getVersion, newClient, setDefaultClassLoader, setMBeanServer
public RMIIIOPServerImpl(Map<String,?> env) throws IOException
创建一个新的RMIServerImpl
。
env
含有新的
RMIServerImpl
属性的环境。可以是空的,这相当于一个空的Map。
IOException
-如果RMI对象不能创造。
protected void export() throws IOException
RMIServerImpl
出口这个RMI对象。
export
方法重写,继承类
RMIServerImpl
IOException
如果RMI对象不能出口。
protected String getProtocol()
RMIServerImpl
返回此对象的协议字符串。字符串是RMI / JRMP和iiop
为RMI/IIOP rmi
。
getProtocol
方法重写,继承类
RMIServerImpl
public Remote toStub() throws IOException
返回一个IIOP存根。
存根可能尚未连接到球。存根才连接到ORB可序列化。toStub
方法重写,继承类
RMIServerImpl
IOException
如果存根不能创造-这rmiiiopserverimpl尚未出口呢。
protected RMIConnection makeClient(String connectionId, Subject subject) throws IOException
创建一个新的客户端连接作为一个RMI对象出口通过IIOP。
makeClient
方法重写,继承类
RMIServerImpl
connectionId
-新连接的ID。由该连接器服务器打开的每一个连接都将有一个不同的身份。如果这个参数为空,则该行为是未指定的。
subject
-认证的主体。可以为空。
RMIConnection
。
IOException
-如果新的客户端对象不能被创造或出口。
protected void closeClient(RMIConnection client) throws IOException
RMIServerImpl
关闭一个由makeClient
客户端连接。
closeClient
方法重写,继承类
RMIServerImpl
client
-连接之前返回
makeClient
,
closeClient
方法没有被调用。如果违反了这些条件的行为是未定义的,包括案件
client
是空的。
IOException
如果客户端连接无法关闭。
protected void closeServer() throws IOException
被RMIServerImpl.close()
通过unexporting这个对象关闭连接器服务器。从这个方法返回后,连接器服务器不能接受任何新的连接。
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.