public class ZookeeperCacheLoader extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
LOADBALANCE_BROKERS_ROOT |
| Constructor and Description |
|---|
ZookeeperCacheLoader(ZooKeeperClientFactory zkClientFactory,
String zookeeperServers,
int zookeeperSessionTimeoutMs)
Initialize ZooKeeper session and creates broker cache list
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<LoadManagerReport> |
getAvailableBrokers() |
ZooKeeperCache |
getLocalZkCache() |
public static final String LOADBALANCE_BROKERS_ROOT
public ZookeeperCacheLoader(ZooKeeperClientFactory zkClientFactory, String zookeeperServers, int zookeeperSessionTimeoutMs) throws Exception
zookeeperServers - Exceptionpublic List<LoadManagerReport> getAvailableBrokers()
public ZooKeeperCache getLocalZkCache()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.