| Package | Description |
|---|---|
| org.apache.pulsar |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| 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.admin.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.intercept |
Pulsar broker interceptor.
|
| org.apache.pulsar.broker.loadbalance |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.loadbalance.impl |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.lookup |
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.service.persistent |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.service.schema |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.stats |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.stats.metrics |
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.
|
| org.apache.pulsar.broker.stats.prometheus |
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 |
|---|---|
static ZookeeperSessionExpiredHandler |
ZookeeperSessionExpiredHandlers.reconnectWhenZookeeperSessionExpired(PulsarService pulsarService,
ZooKeeperSessionWatcher.ShutdownService shutdownService) |
void |
PulsarStandalone.setBroker(PulsarService broker) |
| Constructor and Description |
|---|
ReconnectWhenSessionExpired(PulsarService pulsarService,
ZooKeeperSessionWatcher.ShutdownService shutdownService) |
| Constructor and Description |
|---|
MessagingServiceShutdownHook(PulsarService service,
Consumer<Integer> processTerminator) |
TransactionMetadataStoreService(TransactionMetadataStoreProvider transactionMetadataStoreProvider,
PulsarService pulsarService,
org.apache.pulsar.client.api.transaction.TransactionBufferClient tbClient) |
| Modifier and Type | Method and Description |
|---|---|
protected static org.apache.pulsar.common.partition.PartitionedTopicMetadata |
AdminResource.fetchPartitionedTopicMetadata(PulsarService pulsar,
org.apache.pulsar.common.naming.TopicName topicName) |
protected static org.apache.pulsar.common.partition.PartitionedTopicMetadata |
AdminResource.fetchPartitionedTopicMetadataCheckAllowAutoCreation(PulsarService pulsar,
org.apache.pulsar.common.naming.TopicName topicName) |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> |
PersistentTopicsBase.getPartitionedTopicMetadata(PulsarService pulsar,
String clientAppId,
String originalPrincipal,
AuthenticationDataSource authenticationData,
org.apache.pulsar.common.naming.TopicName topicName) |
static CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> |
PersistentTopicsBase.unsafeGetPartitionedTopicMetadataAsync(PulsarService pulsar,
org.apache.pulsar.common.naming.TopicName topicName)
Get partitioned topic metadata without checking the permission.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BrokerInterceptor.initialize(PulsarService pulsarService)
Initialize the broker interceptor.
|
void |
BrokerInterceptor.BrokerInterceptorDisabled.initialize(PulsarService pulsarService) |
void |
BrokerInterceptors.initialize(PulsarService pulsarService) |
void |
BrokerInterceptorWithClassLoader.initialize(PulsarService pulsarService) |
| Modifier and Type | Method and Description |
|---|---|
static LoadManager |
LoadManager.create(PulsarService pulsar) |
Set<String> |
BundleSplitStrategy.findBundlesToSplit(LoadData loadData,
PulsarService pulsar)
Determines which bundles, if any, should be split.
|
void |
LoadManager.initialize(PulsarService pulsar)
Initialize this LoadManager.
|
void |
NoopLoadManager.initialize(PulsarService pulsar) |
void |
ModularLoadManager.initialize(PulsarService pulsar)
Initialize this load manager using the given pulsar service.
|
| Constructor and Description |
|---|
LeaderElectionService(PulsarService pulsar,
LeaderElectionService.LeaderListener leaderListener) |
| Modifier and Type | Method and Description |
|---|---|
static void |
LoadManagerShared.filterAntiAffinityGroupOwnedBrokers(PulsarService pulsar,
String assignedBundleName,
Set<String> candidates,
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<String>>> brokerToNamespaceToBundleRange,
Map<String,String> brokerToDomainMap)
It tries to filter out brokers which own namespace with same anti-affinity-group as given namespace.
|
Set<String> |
BundleSplitterTask.findBundlesToSplit(LoadData loadData,
PulsarService pulsar)
Determines which bundles should be split based on various thresholds.
|
static CompletableFuture<Map<String,Integer>> |
LoadManagerShared.getAntiAffinityNamespaceOwnedBrokers(PulsarService pulsar,
String namespaceName,
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<String>>> brokerToNamespaceToBundleRange)
It returns map of broker and count of namespace that are belong to the same anti-affinity group as given
|
void |
ModularLoadManagerImpl.initialize(PulsarService pulsar)
Initialize this load manager using the given PulsarService.
|
void |
SimpleLoadManagerImpl.initialize(PulsarService pulsar) |
void |
ModularLoadManagerWrapper.initialize(PulsarService pulsar) |
static boolean |
LoadManagerShared.isLoadSheddingEnabled(PulsarService pulsar)
If load balancing is enabled, load shedding is enabled by default unless forced off by dynamic configuration
|
static boolean |
LoadManagerShared.shouldAntiAffinityNamespaceUnload(String namespace,
String bundle,
String currentBroker,
PulsarService pulsar,
org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashMap<String,org.apache.pulsar.common.util.collections.ConcurrentOpenHashSet<String>>> brokerToNamespaceToBundleRange,
Set<String> candidateBrokers)
It checks if given anti-affinity namespace should be unloaded by broker due to load-shedding.
|
| Constructor and Description |
|---|
BundleSplitterTask(PulsarService pulsar)
Construct a BundleSplitterTask.
|
GenericBrokerHostUsageImpl(PulsarService pulsar) |
LinuxBrokerHostUsageImpl(PulsarService pulsar) |
ModularLoadManagerImpl(PulsarService pulsar)
Initialize this load manager.
|
SimpleLoadManagerImpl(PulsarService pulsar) |
SimpleResourceAllocationPolicies(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
static CompletableFuture<io.netty.buffer.ByteBuf> |
TopicLookupBase.lookupTopicAsync(PulsarService pulsarService,
org.apache.pulsar.common.naming.TopicName topicName,
boolean authoritative,
String clientAppId,
AuthenticationDataSource authenticationData,
long requestId)
Lookup broker-service address for a given namespace-bundle which contains given topic.
|
static CompletableFuture<io.netty.buffer.ByteBuf> |
TopicLookupBase.lookupTopicAsync(PulsarService pulsarService,
org.apache.pulsar.common.naming.TopicName topicName,
boolean authoritative,
String clientAppId,
AuthenticationDataSource authenticationData,
long requestId,
String advertisedListenerName)
Lookup broker-service address for a given namespace-bundle which contains given topic.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
OwnedBundle.handleUnloadRequest(PulsarService pulsar,
long timeout,
TimeUnit timeoutUnit)
It unloads the bundle by closing all topics concurrently under this bundle.
|
| Constructor and Description |
|---|
NamespaceService(PulsarService pulsar)
Default constructor.
|
OwnershipCache(PulsarService pulsar,
NamespaceBundleFactory bundleFactory,
NamespaceService namespaceService)
Constructor of
OwnershipCache |
| Modifier and Type | Method and Description |
|---|---|
PulsarService |
BrokerService.pulsar() |
| Constructor and Description |
|---|
BacklogQuotaManager(PulsarService pulsar) |
BrokerService(PulsarService pulsar) |
PulsarChannelInitializer(PulsarService pulsar,
boolean enableTLS) |
PulsarStats(PulsarService pulsar) |
ServerCnx(PulsarService pulsar) |
SystemTopicBasedTopicPoliciesService(PulsarService pulsarService) |
| Constructor and Description |
|---|
MessageDeduplication(PulsarService pulsar,
PersistentTopic topic,
ManagedLedger managedLedger) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.apache.pulsar.common.protocol.schema.SchemaStorage |
BookkeeperSchemaStorageFactory.create(PulsarService pulsar) |
@NotNull org.apache.pulsar.common.protocol.schema.SchemaStorage |
SchemaStorageFactory.create(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<org.apache.pulsar.common.stats.Metrics> |
MBeanStatsGenerator.generate(PulsarService pulsar) |
static Map<String,Map<String,PendingBookieOpsStats>> |
BookieClientStatsGenerator.generate(PulsarService pulsar) |
| Constructor and Description |
|---|
BookieClientStatsGenerator(PulsarService pulsar) |
MetricsGenerator(PulsarService pulsar) |
| Constructor and Description |
|---|
ManagedCursorMetrics(PulsarService pulsar) |
ManagedLedgerCacheMetrics(PulsarService pulsar) |
ManagedLedgerMetrics(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PrometheusMetricsGenerator.generate(PulsarService pulsar,
boolean includeTopicMetrics,
boolean includeConsumerMetrics,
OutputStream out) |
static void |
PrometheusMetricsGenerator.generate(PulsarService pulsar,
boolean includeTopicMetrics,
boolean includeConsumerMetrics,
OutputStream out,
List<PrometheusRawMetricsProvider> metricsProviders) |
static void |
NamespaceStatsAggregator.generate(PulsarService pulsar,
boolean includeTopicMetrics,
boolean includeConsumerMetrics,
org.apache.pulsar.common.util.SimpleTextOutputStream stream) |
| Constructor and Description |
|---|
PrometheusMetricsServlet(PulsarService pulsar,
boolean includeTopicMetrics,
boolean includeConsumerMetrics) |
| Modifier and Type | Method and Description |
|---|---|
protected PulsarService |
PulsarWebResource.pulsar() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
PulsarWebResource.checkAuthorization(PulsarService pulsarService,
org.apache.pulsar.common.naming.TopicName topicName,
String role,
AuthenticationDataSource authenticationData) |
static CompletableFuture<org.apache.pulsar.common.policies.data.ClusterData> |
PulsarWebResource.checkLocalOrGetPeerReplicationCluster(PulsarService pulsarService,
org.apache.pulsar.common.naming.NamespaceName namespace) |
protected static CompletableFuture<org.apache.pulsar.common.policies.data.ClusterData> |
PulsarWebResource.getClusterDataIfDifferentCluster(PulsarService pulsar,
String cluster,
String clientAppId) |
protected static boolean |
PulsarWebResource.isLeaderBroker(PulsarService pulsar) |
void |
PulsarWebResource.setPulsar(PulsarService pulsar) |
protected static void |
PulsarWebResource.validateAdminAccessForTenant(PulsarService pulsar,
String clientAppId,
String originalPrincipal,
String tenant,
AuthenticationDataSource authenticationData) |
| Constructor and Description |
|---|
ResponseHandlerFilter(PulsarService pulsar) |
WebService(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
static NamespaceBundleFactory |
NamespaceBundleFactory.createFactory(PulsarService pulsar,
com.google.common.hash.HashFunction hashFunc) |
| Constructor and Description |
|---|
NamespaceBundleFactory(PulsarService pulsar,
com.google.common.hash.HashFunction hashFunc) |
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.