| 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 |
|---|---|
org.apache.pulsar.common.policies.data.ResourceQuota |
ResourceQuotaCache.getQuota(NamespaceBundle suName)
Get resource quota for a specified service unit.
|
void |
ResourceQuotaCache.setQuota(NamespaceBundle suName,
org.apache.pulsar.common.policies.data.ResourceQuota quota)
Set resource quota for a specified
ServiceUnit. |
void |
ResourceQuotaCache.unsetQuota(NamespaceBundle suName)
Remove resource quota for a specified
ServiceUnit to use the default 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 |
ServiceUnitZkUtils.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) |
Set<NamespaceBundle> |
NamespaceService.getOwnedServiceUnits() |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Boolean> |
OwnershipCache.checkOwnership(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. |
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) |
static String |
ServiceUnitZkUtils.path(NamespaceBundle suname) |
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.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) |
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 |
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.getFullBundleAsync(org.apache.pulsar.common.naming.NamespaceName fqnn) |
org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>> |
NamespaceBundleFactory.splitBundles(NamespaceBundle targetBundle,
int numBundles,
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) |
org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>> |
NamespaceBundleFactory.splitBundles(NamespaceBundle targetBundle,
int numBundles,
Long splitBoundary)
Fetches
NamespaceBundles from cache for a given namespace. |
void |
NamespaceBundles.validateBundle(NamespaceBundle nsBundle) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.