Uses of Class
org.apache.pulsar.common.naming.NamespaceBundle
-
Packages that use NamespaceBundle 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. -
-
Uses of NamespaceBundle in org.apache.pulsar.broker
Methods in org.apache.pulsar.broker with parameters of type NamespaceBundle Modifier and Type Method Description voidPulsarService. loadNamespaceTopics(NamespaceBundle bundle)Load all the topics contained in a namespace. -
Uses of NamespaceBundle in org.apache.pulsar.broker.admin
Methods in org.apache.pulsar.broker.admin with parameters of type NamespaceBundle Modifier and Type Method Description protected voidAdminResource. validateBundleOwnership(java.lang.String property, java.lang.String cluster, java.lang.String namespace, boolean authoritative, boolean readOnly, NamespaceBundle bundle) -
Uses of NamespaceBundle in org.apache.pulsar.broker.cache
Methods in org.apache.pulsar.broker.cache with parameters of type NamespaceBundle Modifier and Type Method Description java.util.concurrent.CompletableFuture<org.apache.pulsar.common.policies.data.ResourceQuota>BundlesQuotas. getResourceQuota(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Void>BundlesQuotas. resetResourceQuota(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Void>BundlesQuotas. setResourceQuota(NamespaceBundle bundle, org.apache.pulsar.common.policies.data.ResourceQuota quota) -
Uses of NamespaceBundle in org.apache.pulsar.broker.namespace
Methods in org.apache.pulsar.broker.namespace that return NamespaceBundle Modifier and Type Method Description NamespaceBundleNamespaceService. getBundle(org.apache.pulsar.common.naming.TopicName topicName)NamespaceBundleOwnedBundle. getNamespaceBundle()Access to the namespace name.static NamespaceBundleServiceUnitUtils. suBundleFromPath(java.lang.String path, NamespaceBundleFactory factory)Methods in org.apache.pulsar.broker.namespace that return types with arguments of type NamespaceBundle Modifier and Type Method Description java.util.concurrent.CompletableFuture<NamespaceBundle>NamespaceService. getBundleAsync(org.apache.pulsar.common.naming.TopicName topic)java.util.Optional<NamespaceBundle>NamespaceService. getBundleIfPresent(org.apache.pulsar.common.naming.TopicName topicName)java.util.Map<NamespaceBundle,OwnedBundle>OwnershipCache. getOwnedBundles()Method to access the map of allServiceUnitobjects owned by the local broker.java.util.Set<NamespaceBundle>NamespaceService. getOwnedServiceUnits()Methods in org.apache.pulsar.broker.namespace with parameters of type NamespaceBundle Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Boolean>OwnershipCache. checkOwnershipAsync(NamespaceBundle bundle)Check whether this broker owns given namespace bundle.java.util.concurrent.CompletableFuture<java.lang.Void>OwnershipCache. disableOwnership(NamespaceBundle bundle)Disable bundle in local cache and on zk.OwnedBundleOwnershipCache. getOwnedBundle(NamespaceBundle bundle)Return theOwnedBundleinstance from the local cache.java.util.Optional<java.util.concurrent.CompletableFuture<OwnedBundle>>OwnershipCache. getOwnedBundleAsync(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>NamespaceService. getOwnedTopicListForNamespaceBundle(NamespaceBundle bundle)java.util.Optional<NamespaceEphemeralData>NamespaceService. getOwner(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.util.Optional<NamespaceEphemeralData>>NamespaceService. getOwnerAsync(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.util.Optional<NamespaceEphemeralData>>OwnershipCache. getOwnerAsync(NamespaceBundle suName)Method to get the current owner of theServiceUnit.booleanNamespaceService. isNamespaceBundleDisabled(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Boolean>NamespaceService. isNamespaceBundleOwned(NamespaceBundle bundle)booleanOwnershipCache. isNamespaceBundleOwned(NamespaceBundle bundle)Checked whether a particular bundle is currently owned by this broker.voidNamespaceBundleOwnershipListener. onLoad(NamespaceBundle bundle)Will be call after aNamespaceBundleowned by broker.protected voidNamespaceService. onNamespaceBundleOwned(NamespaceBundle bundle)protected voidNamespaceService. onNamespaceBundleUnload(NamespaceBundle bundle)voidNamespaceService. removeOwnedServiceUnit(NamespaceBundle nsBundle)java.util.concurrent.CompletableFuture<java.lang.Void>OwnershipCache. removeOwnership(NamespaceBundle bundle)Method to remove the ownership of local broker on theNamespaceBundle, if owned.java.util.concurrent.CompletableFuture<java.lang.Void>NamespaceService. splitAndOwnBundle(NamespaceBundle bundle, boolean unload, NamespaceBundleSplitAlgorithm splitAlgorithm)1.java.util.concurrent.CompletableFuture<NamespaceEphemeralData>OwnershipCache. tryAcquiringOwnership(NamespaceBundle bundle)Method to get the current owner of theServiceUnitor set the local broker as the owner if absent.voidNamespaceBundleOwnershipListener. unLoad(NamespaceBundle bundle)Will be call after aNamespaceBundleunloaded from broker.java.util.concurrent.CompletableFuture<java.lang.Void>NamespaceService. unloadNamespaceBundle(NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Void>NamespaceService. unloadNamespaceBundle(NamespaceBundle bundle, long timeout, java.util.concurrent.TimeUnit timeoutUnit)java.util.concurrent.CompletableFuture<java.lang.Void>OwnershipCache. updateBundleState(NamespaceBundle bundle, boolean isActive)Update bundle state in a local cache.Constructors in org.apache.pulsar.broker.namespace with parameters of type NamespaceBundle Constructor Description OwnedBundle(NamespaceBundle suName)constructor.OwnedBundle(NamespaceBundle suName, boolean active)Constructor to allow set initial active flag. -
Uses of NamespaceBundle in org.apache.pulsar.broker.service
Methods in org.apache.pulsar.broker.service with parameters of type NamespaceBundle Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>SystemTopicBasedTopicPoliciesService. addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)java.util.concurrent.CompletableFuture<java.lang.Void>TopicPoliciesService. addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)Add owned namespace bundle async.java.util.concurrent.CompletableFuture<java.lang.Void>TopicPoliciesService.TopicPoliciesServiceDisabled. addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)voidBrokerService. cleanUnloadedTopicFromCache(NamespaceBundle serviceUnit)voidBrokerService. refreshTopicToStatsMaps(NamespaceBundle oldBundle)java.util.concurrent.CompletableFuture<java.lang.Void>SystemTopicBasedTopicPoliciesService. removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)java.util.concurrent.CompletableFuture<java.lang.Void>TopicPoliciesService. removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)Remove owned namespace bundle async.java.util.concurrent.CompletableFuture<java.lang.Void>TopicPoliciesService.TopicPoliciesServiceDisabled. removeOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle)java.util.concurrent.CompletableFuture<java.lang.Integer>BrokerService. unloadServiceUnit(NamespaceBundle serviceUnit, boolean closeWithoutWaitingClientDisconnect, long timeout, java.util.concurrent.TimeUnit unit) -
Uses of NamespaceBundle in org.apache.pulsar.broker.web
Methods in org.apache.pulsar.broker.web that return NamespaceBundle Modifier and Type Method Description protected NamespaceBundlePulsarWebResource. validateNamespaceBundleOwnership(org.apache.pulsar.common.naming.NamespaceName fqnn, org.apache.pulsar.common.policies.data.BundlesData bundles, java.lang.String bundleRange, boolean authoritative, boolean readOnly)protected NamespaceBundlePulsarWebResource. validateNamespaceBundleRange(org.apache.pulsar.common.naming.NamespaceName fqnn, org.apache.pulsar.common.policies.data.BundlesData bundles, java.lang.String bundleRange)Methods in org.apache.pulsar.broker.web with parameters of type NamespaceBundle Modifier and Type Method Description protected voidPulsarWebResource. validateBundleOwnership(java.lang.String tenant, java.lang.String cluster, java.lang.String namespace, boolean authoritative, boolean readOnly, NamespaceBundle bundle)voidPulsarWebResource. validateBundleOwnership(NamespaceBundle bundle, boolean authoritative, boolean readOnly) -
Uses of NamespaceBundle in org.apache.pulsar.common.naming
Methods in org.apache.pulsar.common.naming that return NamespaceBundle Modifier and Type Method Description NamespaceBundleNamespaceBundles. findBundle(org.apache.pulsar.common.naming.TopicName topicName)NamespaceBundleNamespaceBundleFactory. getBundle(java.lang.String namespace, java.lang.String bundleRange)NamespaceBundleNamespaceBundleFactory. getBundle(org.apache.pulsar.common.naming.NamespaceName nsname, com.google.common.collect.Range<java.lang.Long> hashRange)protected NamespaceBundleNamespaceBundles. getBundle(long hash)NamespaceBundleNamespaceBundleFactory. getBundlesWithHighestTopics(org.apache.pulsar.common.naming.NamespaceName nsname)NamespaceBundleNamespaceBundleFactory. getFullBundle(org.apache.pulsar.common.naming.NamespaceName fqnn)NamespaceBundleNamespaceBundles. getFullBundle()Methods in org.apache.pulsar.common.naming that return types with arguments of type NamespaceBundle Modifier and Type Method Description java.util.List<NamespaceBundle>NamespaceBundles. getBundles()java.util.concurrent.CompletableFuture<NamespaceBundle>NamespaceBundleFactory. getBundlesWithHighestTopicsAsync(org.apache.pulsar.common.naming.NamespaceName nsname)java.util.concurrent.CompletableFuture<NamespaceBundle>NamespaceBundleFactory. getFullBundleAsync(org.apache.pulsar.common.naming.NamespaceName fqnn)java.util.concurrent.CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,java.util.List<NamespaceBundle>>>NamespaceBundleFactory. splitBundles(NamespaceBundle targetBundle, int argNumBundles, java.lang.Long splitBoundary)FetchesNamespaceBundlesfrom cache for a given namespace.Methods in org.apache.pulsar.common.naming with parameters of type NamespaceBundle Modifier and Type Method Description booleanNamespaceBundleFactory. canSplitBundle(NamespaceBundle bundle)intNamespaceBundle. compareTo(NamespaceBundle other)java.util.concurrent.CompletableFuture<java.lang.Long>NamespaceBundleSplitAlgorithm. getSplitBoundary(NamespaceService service, NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Long>RangeEquallyDivideBundleSplitAlgorithm. getSplitBoundary(NamespaceService service, NamespaceBundle bundle)java.util.concurrent.CompletableFuture<java.lang.Long>TopicCountEquallyDivideBundleSplitAlgorithm. getSplitBoundary(NamespaceService service, NamespaceBundle bundle)java.util.concurrent.CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,java.util.List<NamespaceBundle>>>NamespaceBundleFactory. splitBundles(NamespaceBundle targetBundle, int argNumBundles, java.lang.Long splitBoundary)FetchesNamespaceBundlesfrom cache for a given namespace.voidNamespaceBundles. validateBundle(NamespaceBundle nsBundle)
-