Uses of Class
org.apache.pulsar.common.naming.NamespaceBundle
Packages that use NamespaceBundle
Package
Description
-
Uses of NamespaceBundle in org.apache.pulsar.broker
Methods in org.apache.pulsar.broker with parameters of type NamespaceBundleModifier and TypeMethodDescriptionvoidPulsarService.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 NamespaceBundleModifier and TypeMethodDescriptionprotected voidAdminResource.validateBundleOwnership(String property, String cluster, 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 NamespaceBundleModifier and TypeMethodDescriptionCompletableFuture<org.apache.pulsar.common.policies.data.ResourceQuota>BundlesQuotas.getResourceQuota(NamespaceBundle bundle) BundlesQuotas.resetResourceQuota(NamespaceBundle bundle) BundlesQuotas.setResourceQuota(NamespaceBundle bundle, org.apache.pulsar.common.policies.data.ResourceQuota quota) -
Uses of NamespaceBundle in org.apache.pulsar.broker.loadbalance.extensions
Methods in org.apache.pulsar.broker.loadbalance.extensions that return types with arguments of type NamespaceBundleModifier and TypeMethodDescriptionExtensibleLoadManagerImpl.getOwnedServiceUnits()ExtensibleLoadManagerImpl.getOwnedServiceUnitsAsync()Deprecated.Methods in org.apache.pulsar.broker.loadbalance.extensions with parameters of type NamespaceBundleModifier and TypeMethodDescriptionExtensibleLoadManagerImpl.tryAcquiringOwnership(NamespaceBundle namespaceBundle) Method to get the current owner of theNamespaceBundleor set the local broker as the owner if absent. -
Uses of NamespaceBundle in org.apache.pulsar.broker.loadbalance.extensions.channel
Methods in org.apache.pulsar.broker.loadbalance.extensions.channel that return types with arguments of type NamespaceBundleModifier and TypeMethodDescriptionServiceUnitStateChannel.getOwnedServiceUnits()Asynchronously returns service units owned by this broker.ServiceUnitStateChannelImpl.getOwnedServiceUnits()ServiceUnitStateTableView.ownedServiceUnits()Returns service units (namespace bundles) owned by this broker.Methods in org.apache.pulsar.broker.loadbalance.extensions.channel with parameters of type NamespaceBundleModifier and TypeMethodDescriptionprotected voidServiceUnitStateChannelImpl.splitServiceUnitOnceAndRetry(NamespaceService namespaceService, NamespaceBundleFactory bundleFactory, NamespaceBundleSplitAlgorithm algorithm, NamespaceBundle parentBundle, List<NamespaceBundle> childBundles, List<Long> boundaries, ServiceUnitStateData parentData, AtomicInteger counter, long startTime, CompletableFuture<Void> completionFuture) Method parameters in org.apache.pulsar.broker.loadbalance.extensions.channel with type arguments of type NamespaceBundleModifier and TypeMethodDescriptionprotected voidServiceUnitStateChannelImpl.splitServiceUnitOnceAndRetry(NamespaceService namespaceService, NamespaceBundleFactory bundleFactory, NamespaceBundleSplitAlgorithm algorithm, NamespaceBundle parentBundle, List<NamespaceBundle> childBundles, List<Long> boundaries, ServiceUnitStateData parentData, AtomicInteger counter, long startTime, CompletableFuture<Void> completionFuture) -
Uses of NamespaceBundle in org.apache.pulsar.broker.loadbalance.extensions.scheduler
Methods in org.apache.pulsar.broker.loadbalance.extensions.scheduler with parameters of type NamespaceBundleModifier and TypeMethodDescriptionprotected booleanTransferShedder.isLoadBalancerSheddingBundlesWithPoliciesEnabled(LoadManagerContext context, NamespaceBundle namespaceBundle) -
Uses of NamespaceBundle in org.apache.pulsar.broker.loadbalance.impl
Methods in org.apache.pulsar.broker.loadbalance.impl that return NamespaceBundleModifier and TypeMethodDescriptionstatic NamespaceBundleLoadManagerShared.getNamespaceBundle(PulsarService pulsar, String bundle) -
Uses of NamespaceBundle in org.apache.pulsar.broker.namespace
Methods in org.apache.pulsar.broker.namespace that return NamespaceBundleModifier and TypeMethodDescriptionNamespaceService.getBundle(org.apache.pulsar.common.naming.TopicName topicName) OwnedBundle.getNamespaceBundle()Access to the namespace name.static NamespaceBundleServiceUnitUtils.suBundleFromPath(String path, NamespaceBundleFactory factory) Methods in org.apache.pulsar.broker.namespace that return types with arguments of type NamespaceBundleModifier and TypeMethodDescriptionNamespaceService.getBundleAsync(org.apache.pulsar.common.naming.TopicName topic) NamespaceService.getBundleIfPresent(org.apache.pulsar.common.naming.TopicName topicName) Map<NamespaceBundle,org.apache.pulsar.metadata.api.coordination.ResourceLock<NamespaceEphemeralData>> OwnershipCache.getLocallyAcquiredLocks()OwnershipCache.getOwnedBundles()Method to access the map of allServiceUnitobjects owned by the local broker.OwnershipCache.getOwnedBundlesAsync()NamespaceService.getOwnedServiceUnits()CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>>> NamespaceService.getSplitBoundary(NamespaceBundle bundle, NamespaceBundleSplitAlgorithm nsBundleSplitAlgorithm, List<Long> boundaries) Get the split boundary's.Methods in org.apache.pulsar.broker.namespace with parameters of type NamespaceBundleModifier and TypeMethodDescriptionOwnershipCache.checkOwnershipAsync(NamespaceBundle bundle) Check whether this broker owns given namespace bundle.booleanNamespaceService.checkOwnershipPresent(NamespaceBundle bundle) NamespaceService.checkOwnershipPresentAsync(NamespaceBundle bundle) OwnershipCache.disableOwnership(NamespaceBundle bundle) Deprecated.OwnershipCache.getOwnedBundle(NamespaceBundle bundle) Return theOwnedBundleinstance from the local cache.OwnershipCache.getOwnedBundleAsync(NamespaceBundle bundle) NamespaceService.getOwnedTopicListForNamespaceBundle(NamespaceBundle bundle) NamespaceService.getOwnerAsync(NamespaceBundle bundle) OwnershipCache.getOwnerAsync(NamespaceBundle suName) Method to get the current owner of theServiceUnit.NamespaceService.getSplitBoundary(NamespaceBundle bundle, List<Long> boundaries, NamespaceBundleSplitAlgorithm nsBundleSplitAlgorithm) CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>>> NamespaceService.getSplitBoundary(NamespaceBundle bundle, NamespaceBundleSplitAlgorithm nsBundleSplitAlgorithm, List<Long> boundaries) Get the split boundary's.voidOwnershipCache.invalidateLocalOwnerCache(NamespaceBundle namespaceBundle) booleanNamespaceService.isNamespaceBundleDisabled(NamespaceBundle bundle) 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.voidNamespaceService.onNamespaceBundleOwned(NamespaceBundle bundle) voidNamespaceService.onNamespaceBundleSplit(NamespaceBundle bundle) voidNamespaceService.onNamespaceBundleUnload(NamespaceBundle bundle) voidNamespaceBundleSplitListener.onSplit(NamespaceBundle bundle) static StringServiceUnitUtils.path(NamespaceBundle suname) NamespaceService.removeOwnedServiceUnitAsync(NamespaceBundle nsBundle) OwnershipCache.removeOwnership(NamespaceBundle bundle) Method to remove the ownership of local broker on theNamespaceBundle, if owned.NamespaceService.splitAndOwnBundle(NamespaceBundle bundle, boolean unload, NamespaceBundleSplitAlgorithm splitAlgorithm, List<Long> boundaries) 1.OwnershipCache.tryAcquiringOwnership(NamespaceBundle bundle) Method to get the current owner of theNamespaceBundleor set the local broker as the owner if absent.voidNamespaceBundleOwnershipListener.unLoad(NamespaceBundle bundle) Will be call after aNamespaceBundleunloaded from broker.NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle) NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle, long timeout, TimeUnit timeoutUnit) NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle, long timeout, TimeUnit timeoutUnit, boolean closeWithoutWaitingClientDisconnect) NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle, Optional<String> destinationBroker) NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle, Optional<String> destinationBroker, long timeout, TimeUnit timeoutUnit) NamespaceService.unloadNamespaceBundle(NamespaceBundle bundle, Optional<String> destinationBroker, long timeout, TimeUnit timeoutUnit, boolean closeWithoutWaitingClientDisconnect) OwnershipCache.updateBundleState(NamespaceBundle bundle, boolean isActive) Update bundle state in a local cache.Constructors in org.apache.pulsar.broker.namespace with parameters of type NamespaceBundleModifierConstructorDescriptionOwnedBundle(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 NamespaceBundleModifier and TypeMethodDescriptionvoidSystemTopicBasedTopicPoliciesService.addOwnedNamespaceBundleAsync(NamespaceBundle namespaceBundle) voidBrokerService.cleanUnloadedTopicFromCache(NamespaceBundle serviceUnit) BrokerService.getTopicStats(NamespaceBundle bundle) voidBrokerService.refreshTopicToStatsMaps(NamespaceBundle oldBundle) BrokerService.unloadServiceUnit(NamespaceBundle serviceUnit, boolean disconnectClients, boolean closeWithoutWaitingClientDisconnect, long timeout, TimeUnit unit) -
Uses of NamespaceBundle in org.apache.pulsar.broker.web
Methods in org.apache.pulsar.broker.web that return NamespaceBundleModifier and TypeMethodDescriptionprotected NamespaceBundlePulsarWebResource.validateNamespaceBundleOwnership(org.apache.pulsar.common.naming.NamespaceName fqnn, org.apache.pulsar.common.policies.data.BundlesData bundles, String bundleRange, boolean authoritative, boolean readOnly) protected NamespaceBundlePulsarWebResource.validateNamespaceBundleRange(org.apache.pulsar.common.naming.NamespaceName fqnn, org.apache.pulsar.common.policies.data.BundlesData bundles, String bundleRange) Methods in org.apache.pulsar.broker.web that return types with arguments of type NamespaceBundleModifier and TypeMethodDescriptionprotected CompletableFuture<NamespaceBundle>PulsarWebResource.validateNamespaceBundleOwnershipAsync(org.apache.pulsar.common.naming.NamespaceName fqnn, org.apache.pulsar.common.policies.data.BundlesData bundles, String bundleRange, boolean authoritative, boolean readOnly) Methods in org.apache.pulsar.broker.web with parameters of type NamespaceBundleModifier and TypeMethodDescriptionprotected voidPulsarWebResource.validateBundleOwnership(String tenant, String cluster, String namespace, boolean authoritative, boolean readOnly, NamespaceBundle bundle) voidPulsarWebResource.validateBundleOwnership(NamespaceBundle bundle, boolean authoritative, boolean readOnly) PulsarWebResource.validateBundleOwnershipAsync(NamespaceBundle bundle, boolean authoritative, boolean readOnly) -
Uses of NamespaceBundle in org.apache.pulsar.common.naming
Methods in org.apache.pulsar.common.naming that return NamespaceBundleModifier and TypeMethodDescriptionConsistentHashingTopicBundleAssigner.findBundle(org.apache.pulsar.common.naming.TopicName topicName, NamespaceBundles namespaceBundles) NamespaceBundles.findBundle(org.apache.pulsar.common.naming.TopicName topicName) TopicBundleAssignmentStrategy.findBundle(org.apache.pulsar.common.naming.TopicName topicName, NamespaceBundles namespaceBundles) NamespaceBundleFactory.getBundle(org.apache.pulsar.common.naming.NamespaceName nsname, com.google.common.collect.Range<Long> hashRange) NamespaceBundleFactory.getBundle(org.apache.pulsar.common.naming.TopicName topic) protected NamespaceBundleNamespaceBundles.getBundle(long hash) NamespaceBundleFactory.getBundleWithHighestTopics(org.apache.pulsar.common.naming.NamespaceName nsname) NamespaceBundleFactory.getFullBundle(org.apache.pulsar.common.naming.NamespaceName fqnn) NamespaceBundles.getFullBundle()Methods in org.apache.pulsar.common.naming that return types with arguments of type NamespaceBundleModifier and TypeMethodDescriptionNamespaceBundles.getBundles()NamespaceBundleFactory.getBundleWithHighestThroughputAsync(org.apache.pulsar.common.naming.NamespaceName nsName) NamespaceBundleFactory.getBundleWithHighestTopicsAsync(org.apache.pulsar.common.naming.NamespaceName nsname) 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, List<Long> splitBoundaries) FetchesNamespaceBundlesfrom cache for a given namespace.Methods in org.apache.pulsar.common.naming with parameters of type NamespaceBundleModifier and TypeMethodDescriptionbooleanNamespaceBundleFactory.canSplitBundle(NamespaceBundle bundle) intNamespaceBundle.compareTo(NamespaceBundle other) CompletableFuture<org.apache.commons.lang3.tuple.Pair<NamespaceBundles,List<NamespaceBundle>>> NamespaceBundleFactory.splitBundles(NamespaceBundle targetBundle, int argNumBundles, List<Long> splitBoundaries) FetchesNamespaceBundlesfrom cache for a given namespace.voidNamespaceBundles.validateBundle(NamespaceBundle nsBundle) Constructors in org.apache.pulsar.common.naming with parameters of type NamespaceBundleModifierConstructorDescriptionFlowOrQpsEquallyDivideBundleSplitOption(NamespaceService namespaceService, NamespaceBundle bundle, List<Long> boundaries, Map<String, org.apache.pulsar.common.policies.data.stats.TopicStatsImpl> topicStatsMap, int loadBalancerNamespaceBundleMaxMsgRate, int loadBalancerNamespaceBundleMaxBandwidthMbytes, int flowOrQpsDifferenceThresholdPercentage)