public class LocalZooKeeperCacheService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AVAILABLE_BOOKIES_ROOT |
static String |
LOCAL_POLICIES_ROOT |
static String |
OWNER_INFO_ROOT |
| Constructor and Description |
|---|
LocalZooKeeperCacheService(ZooKeeperCache cache,
ConfigurationCacheService configurationCacheService) |
| Modifier and Type | Method and Description |
|---|---|
ZooKeeperChildrenCache |
availableBookiesCache() |
CompletableFuture<Optional<org.apache.pulsar.common.policies.data.LocalPolicies>> |
createPolicies(String path,
boolean readFromGlobal)
Create LocalPolicies with bundle-data in LocalZookeeper by fetching it from GlobalZookeeper
|
ResourceQuotaCache |
getResourceQuotaCache() |
CompletableFuture<Boolean> |
managedLedgerExists(String persistentPath) |
ZooKeeperManagedLedgerCache |
managedLedgerListCache() |
ZooKeeperDataCache<NamespaceEphemeralData> |
ownerInfoCache() |
ZooKeeperDataCache<org.apache.pulsar.common.policies.data.LocalPolicies> |
policiesCache() |
public static final String OWNER_INFO_ROOT
public static final String LOCAL_POLICIES_ROOT
public static final String AVAILABLE_BOOKIES_ROOT
public LocalZooKeeperCacheService(ZooKeeperCache cache, ConfigurationCacheService configurationCacheService) throws PulsarServerException
PulsarServerExceptionpublic CompletableFuture<Optional<org.apache.pulsar.common.policies.data.LocalPolicies>> createPolicies(String path, boolean readFromGlobal)
path - znode pathreadFromGlobal - if true copy policies from global zk to local zk else create a new znode with empty PoliciesExceptionpublic ResourceQuotaCache getResourceQuotaCache()
public ZooKeeperDataCache<NamespaceEphemeralData> ownerInfoCache()
public ZooKeeperDataCache<org.apache.pulsar.common.policies.data.LocalPolicies> policiesCache()
public ZooKeeperManagedLedgerCache managedLedgerListCache()
public ZooKeeperChildrenCache availableBookiesCache()
public CompletableFuture<Boolean> managedLedgerExists(String persistentPath)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.