public class MetadataStoreCacheLoader extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static String |
LOADBALANCE_BROKERS_ROOT |
| Constructor and Description |
|---|
MetadataStoreCacheLoader(PulsarResources pulsarResources,
int operationTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
List<org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport> |
getAvailableBrokers() |
void |
init()
Initialize ZooKeeper session and creates broker cache list.
|
public static final String LOADBALANCE_BROKERS_ROOT
public MetadataStoreCacheLoader(PulsarResources pulsarResources, int operationTimeoutMs) throws Exception
Exceptionpublic void init()
throws Exception
Exceptionpublic List<org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport> getAvailableBrokers()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.