类 AbstractZookeeperTransporter
- java.lang.Object
-
- org.apache.dubbo.remoting.zookeeper.AbstractZookeeperTransporter
-
- 所有已实现的接口:
ZookeeperTransporter
public abstract class AbstractZookeeperTransporter extends Object implements ZookeeperTransporter
AbstractZookeeperTransporter is abstract implements of ZookeeperTransporter.If you want to extends this, implements createZookeeperClient.
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.remoting.zookeeper.ZookeeperTransporter
CURATOR, CURATOR_5
-
-
构造器概要
构造器 构造器 说明 AbstractZookeeperTransporter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ZookeeperClient
connect(URL url)
share connect for registry, metadata, etc..ZookeeperClient
fetchAndUpdateZookeeperClientCache(List<String> addressList)
get the ZookeeperClient from cache, the ZookeeperClient must be connected.List<String>
getURLBackupAddress(URL url)
get all zookeeper urls (such as :zookeeper://127.0.0.1:2181?Map<String,ZookeeperClient>
getZookeeperClientMap()
for unit test
-
-
-
方法详细资料
-
connect
public ZookeeperClient connect(URL url)
share connect for registry, metadata, etc..Make sure the connection is connected.
- 指定者:
connect
在接口中ZookeeperTransporter
- 参数:
url
-- 返回:
-
fetchAndUpdateZookeeperClientCache
public ZookeeperClient fetchAndUpdateZookeeperClientCache(List<String> addressList)
get the ZookeeperClient from cache, the ZookeeperClient must be connected.It is not private method for unit test.
- 参数:
addressList
-- 返回:
-
getURLBackupAddress
public List<String> getURLBackupAddress(URL url)
get all zookeeper urls (such as :zookeeper://127.0.0.1:2181?127.0.0.1:8989,127.0.0.1:9999)- 参数:
url
- such as:zookeeper://127.0.0.1:2181?127.0.0.1:8989,127.0.0.1:9999- 返回:
- such as 127.0.0.1:2181,127.0.0.1:8989,127.0.0.1:9999
-
getZookeeperClientMap
public Map<String,ZookeeperClient> getZookeeperClientMap()
for unit test- 返回:
-
-