| 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.