| Package | Description |
|---|---|
| org.apache.pulsar.broker |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.admin |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.cache |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.namespace |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.service |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.web |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.common.naming |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PulsarService.loadNamespaceTopics(NamespaceBundle bundle)
Load all the topics contained in a namespace.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
AdminResource.validateBundleOwnership(String property,
String cluster,
String namespace,
boolean authoritative,
boolean readOnly,
NamespaceBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<org.apache.pulsar.common.policies.data.ResourceQuota> |
BundlesQuotas.getResourceQuota(NamespaceBundle bundle) |
CompletableFuture<Void> |
BundlesQuotas.resetResourceQuota(NamespaceBundle bundle) |
CompletableFuture<Void> |
BundlesQuotas.setResourceQuota(NamespaceBundle bundle,
org.apache.pulsar.common.policies.data.ResourceQuota quota) |
| Modifier and Type | Method and Description |
|---|---|
NamespaceBundle |
NamespaceService.getBundle(org.apache.pulsar.common.naming.TopicName topicName) |
NamespaceBundle |
OwnedBundle.getNamespaceBundle()
Access to the namespace name.
|
static NamespaceBundle |
ServiceUnitUtils.suBundleFromPath(String path,
NamespaceBundleFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<NamespaceBundle> |
NamespaceService.getBundleAsync(org.apache.pulsar.common.naming.TopicName topic) |
Optional<NamespaceBundle> |
NamespaceService.getBundleIfPresent(org.apache.pulsar.common.naming.TopicName topicName) |
Map<NamespaceBundle,OwnedBundle> |
OwnershipCache.getOwnedBundles()
Method to access the map of all
ServiceUnit objects owned by the local broker. |
Set<NamespaceBundle> |
NamespaceService.getOwnedServiceUnits() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
OwnershipCache.checkOwnershipAsync(NamespaceBundle bundle)
Check whether this broker owns given namespace bundle.
|
CompletableFuture<Void> |
OwnershipCache.disableOwnership(NamespaceBundle bundle)
Disable bundle in local cache and on zk.
|
OwnedBundle |
OwnershipCache.getOwnedBundle(NamespaceBundle bundle)
Return the
OwnedBundle instance from the local cache. |
Optional<CompletableFuture<OwnedBundle>> |
OwnershipCache.getOwnedBundleAsync(NamespaceBundle bundle) |
CompletableFuture<List<String>> |
NamespaceService.getOwnedTopicListForNamespaceBundle(NamespaceBundle bundle) |
Optional<NamespaceEphemeralData> |
NamespaceService.getOwner(NamespaceBundle bundle) |
CompletableFuture<Optional<NamespaceEphemeralData>> |
OwnershipCache.getOwnerAsync(NamespaceBundle suName)
Method to get the current owner of the
ServiceUnit. |
CompletableFuture<Optional<NamespaceEphemeralData>> |
NamespaceService.getOwnerAsync(NamespaceBundle bundle) |
boolean |
NamespaceService.isNamespaceBundleDisabled(NamespaceBundle bundle) |
boolean |
OwnershipCache.isNamespaceBundleOwned(NamespaceBundle bundle)
Checked whether a particular bundle is currently owned by this broker.
|
CompletableFuture<Boolean> |
NamespaceService.isNamespaceBundleOwned(NamespaceBundle bundle) |
void |
NamespaceBundleOwnershipListener.onLoad(NamespaceBundle bundle)
Will be call after a
NamespaceBundle owned by broker. |
protected void |
NamespaceService.onNamespaceBundleOwned(NamespaceBundle bundle) |
protected void |
NamespaceService.onNamespaceBundleUnload(NamespaceBundle bundle) |
void |
NamespaceService.removeOwnedServiceUnit(NamespaceBundle nsBundle) |
CompletableFuture<Void> |
OwnershipCache.removeOwnership(NamespaceBundle bundle)
Method to remove the ownership of local broker on the
NamespaceBundle, if owned. |
CompletableFuture<Void> |
NamespaceService.splitAndOwnBundle(NamespaceBundle bundle,
boolean unload,
NamespaceBundleSplitAlgorithm splitAlgorithm)
1.
|
CompletableFuture<NamespaceEphemeralData> |
OwnershipCache.tryAcquiringOwnership(NamespaceBundle bundle)
Method to get the current owner of the
ServiceUnit or set the local broker as the owner if absent. |
void |
NamespaceBundleOwnershipListener.unLoad(NamespaceBundle bundle)
Will be call after a
NamespaceBundle unloaded from broker. |
CompletableFuture<Void> |
NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle) |
CompletableFuture<Void> |
NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle,
long timeout,
TimeUnit timeoutUnit) |
CompletableFuture<Void> |
OwnershipCache.updateBundleState(NamespaceBundle bundle,
boolean isActive)
Update bundle state in a local cache.
|
| Constructor and Description |
|---|
OwnedBundle(NamespaceBundle suName)
constructor.
|
OwnedBundle(NamespaceBundle suName,
boolean active)
Constructor to allow set initial active flag.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
TopicPoliciesService.addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)
Add owned namespace bundle async.
|
CompletableFuture<Void> |
TopicPoliciesService.TopicPoliciesServiceDisabled.addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) |
CompletableFuture<Void> |
SystemTopicBasedTopicPoliciesService.addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) |
void |
BrokerService.cleanUnloadedTopicFromCache(NamespaceBundle serviceUnit) |
void |
BrokerService.refreshTopicToStatsMaps(NamespaceBundle oldBundle) |
CompletableFuture<Void> |
TopicPoliciesService.removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)
Remove owned namespace bundle async.
|
CompletableFuture<Void> |
TopicPoliciesService.TopicPoliciesServiceDisabled.removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) |
CompletableFuture<Void> |
SystemTopicBasedTopicPoliciesService.removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) |
void |
BrokerService.removeTopicFromCache(String topic,
NamespaceBundle namespaceBundle) |
CompletableFuture<Integer> |
BrokerService.unloadServiceUnit(NamespaceBundle serviceUnit,
boolean closeWithoutWaitingClientDisconnect,
long timeout,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
protected NamespaceBundle |
PulsarWebResource.validateNamespaceBundleOwnership(org.apache.pulsar.common.naming.NamespaceName fqnn,
org.apache.pulsar.common.policies.data.BundlesData bundles,
String bundleRange,
boolean authoritative,
boolean readOnly) |
protected NamespaceBundle |
PulsarWebResource.validateNamespaceBundleRange(org.apache.pulsar.common.naming.NamespaceName fqnn,
org.apache.pulsar.common.policies.data.BundlesData bundles,
String bundleRange) |
| Modifier and Type | Method and Description |
|---|---|
void |
PulsarWebResource.validateBundleOwnership(NamespaceBundle bundle,
boolean authoritative,
boolean readOnly) |
protected void |
PulsarWebResource.validateBundleOwnership(String tenant,
String cluster,
String namespace,
boolean authoritative,
boolean readOnly,
NamespaceBundle bundle) |
| Modifier and Type | Method and Description |
|---|---|
NamespaceBundle |
NamespaceBundles.findBundle(org.apache.pulsar.common.naming.TopicName topicName) |
protected NamespaceBundle |
NamespaceBundles.getBundle(long hash) |
NamespaceBundle |
NamespaceBundleFactory.getBundle(org.apache.pulsar.common.naming.NamespaceName nsname,
com.google.common.collect.Range<Long> hashRange) |
NamespaceBundle |
NamespaceBundleFactory.getBundle(String namespace,
String bundleRange) |
NamespaceBundle |
NamespaceBundleFactory.getBundlesWithHighestTopics(org.apache.pulsar.common.naming.NamespaceName nsname) |
NamespaceBundle |
NamespaceBundles.getFullBundle() |
NamespaceBundle |
NamespaceBundleFactory.getFullBundle(org.apache.pulsar.common.naming.NamespaceName fqnn) |
| Modifier and Type | Method and Description |
|---|---|
List<NamespaceBundle> |
NamespaceBundles.getBundles() |
CompletableFuture<NamespaceBundle> |
NamespaceBundleFactory.getBundlesWithHighestTopicsAsync(org.apache.pulsar.common.naming.NamespaceName nsname) |
CompletableFuture<NamespaceBundle> |
NamespaceBundleFactory.getFullBundleAsync(org.apache.pulsar.common.naming.NamespaceName fqnn) |
CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>>> |
NamespaceBundleFactory.splitBundles(NamespaceBundle targetBundle,
int argNumBundles,
Long splitBoundary)
Fetches
NamespaceBundles from cache for a given namespace. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NamespaceBundleFactory.canSplitBundle(NamespaceBundle bundle) |
int |
NamespaceBundle.compareTo(NamespaceBundle other) |
CompletableFuture<Long> |
NamespaceBundleSplitAlgorithm.getSplitBoundary(NamespaceService service,
NamespaceBundle bundle) |
CompletableFuture<Long> |
TopicCountEquallyDivideBundleSplitAlgorithm.getSplitBoundary(NamespaceService service,
NamespaceBundle bundle) |
CompletableFuture<Long> |
RangeEquallyDivideBundleSplitAlgorithm.getSplitBoundary(NamespaceService service,
NamespaceBundle bundle) |
CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>>> |
NamespaceBundleFactory.splitBundles(NamespaceBundle targetBundle,
int argNumBundles,
Long splitBoundary)
Fetches
NamespaceBundles from cache for a given namespace. |
void |
NamespaceBundles.validateBundle(NamespaceBundle nsBundle) |
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.