Modifier and Type | Method and Description |
---|---|
static Registry |
createRegistry(int port)
创建和出口
Registry 实例在本地主机上接受指定的
port 请求。
|
static Registry |
createRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
创建和出口
Registry 实例在本地主机上使用自定义套接字工厂与通信实例。
|
static Registry |
getRegistry()
返回引用的远程对象
Registry 在缺省的1099船籍港本地主机。
|
static Registry |
getRegistry(int port)
返回引用的远程对象
Registry 为本地主机在指定的
port 。
|
static Registry |
getRegistry(String host)
返回在1099默认注册端口指定的
host 对远程对象的引用
Registry 。
|
static Registry |
getRegistry(String host, int port)
返回在指定的
host 和
port 对远程对象的引用
Registry 。
|
static Registry |
getRegistry(String host, int port, RMIClientSocketFactory csf)
返回一个本地创建的远程远程对象的引用
Registry 在指定的
host 和
port 。
|
public static Registry getRegistry() throws RemoteException
Registry
在缺省的1099船籍港本地主机。
RemoteException
-如果引用不能被创建
public static Registry getRegistry(int port) throws RemoteException
Registry
为本地主机在指定的
port
。
port
端口上接收请求的注册表
RemoteException
-如果引用不能被创建
public static Registry getRegistry(String host) throws RemoteException
host
对远程对象的引用
Registry
。如果
host
是
null
,则使用本地主机。
host
-远程注册表主机
RemoteException
-如果引用不能被创建
public static Registry getRegistry(String host, int port) throws RemoteException
host
和
port
对远程对象的引用
Registry
。如果
host
是
null
,则使用本地主机。
host
-远程注册表主机
port
端口上接收请求的注册表
RemoteException
-如果引用不能被创建
public static Registry getRegistry(String host, int port, RMIClientSocketFactory csf) throws RemoteException
Registry
在指定的
host
和
port
。这种远程注册表通信将使用提供的
RMIClientSocketFactory
csf
创造
Socket
连接到注册表的远程
host
和
port
。
host
-远程注册表主机
port
端口上接收请求的注册表
csf
-客户端
Socket
厂常用来连接到注册表。如果
csf
是null,则默认客户端
Socket
厂将用于注册存根。
RemoteException
-如果引用不能被创建
public static Registry createRegistry(int port) throws RemoteException
Registry
实例在本地主机上接受指定的
port
请求。
的Registry
实例是出口如果静态UnicastRemoteObject.exportObject
方法被调用时,通过Registry
实例与指定的port
作为参数,除了那Registry
实例与已知对象标识符的值ObjID.REGISTRY_ID
出口,构建了一个ObjID
实例。
port
注册表接受端口的请求
RemoteException
如果注册表不能出口
public static Registry createRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
Registry
实例在本地主机上使用自定义套接字工厂与通信实例。注册表,创建监听在给定的
port
使用
ServerSocket
从提供的
RMIServerSocketFactory
创建传入的请求。
的Registry
实例是出口如果静态UnicastRemoteObject.exportObject
方法被调用时,通过Registry
实例,指定port
,指定RMIClientSocketFactory
,和指定的RMIServerSocketFactory
作为参数,除了那Registry
实例与已知对象标识符的值ObjID.REGISTRY_ID
出口,构建了一个ObjID
实例。
port
端口上接收请求的注册表
csf
-客户端
Socket
厂常用来连接到注册表
ssf
-服务器端
ServerSocket
厂用来接受连接到注册表
RemoteException
如果注册表不能出口
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.