public abstract class AbstractZookeeperTransporter extends Object implements ZookeeperTransporter
If you want to extend this, implements createZookeeperClient.
CURATOR, CURATOR_5| 构造器和说明 |
|---|
AbstractZookeeperTransporter() |
| 限定符和类型 | 方法和说明 |
|---|---|
ZookeeperClient |
connect(URL url)
share connect for registry, metadata, etc..
|
void |
destroy() |
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
|
getExtension, isHighVersionCuratorpublic ZookeeperClient connect(URL url)
Make sure the connection is connected.
connect 在接口中 ZookeeperTransporterurl - public ZookeeperClient fetchAndUpdateZookeeperClientCache(List<String> addressList)
It is not private method for unit test.
addressList - public List<String> getURLBackupAddress(URL url)
url - such as zookeeper://127.0.0.1:2181?backup=127.0.0.1:8989,127.0.0.1:9999public Map<String,ZookeeperClient> getZookeeperClientMap()
public void destroy()
destroy 在接口中 ZookeeperTransporterCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.