All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method and Description |
protected void |
acquireSLANamespace() |
void |
addPrometheusRawMetricsProvider(PrometheusRawMetricsProvider metricsProvider) |
static String |
bookieMetadataServiceUri(ServiceConfiguration config)
Get bookkeeper metadata service uri.
|
protected String |
brokerUrl(ServiceConfiguration config) |
static String |
brokerUrl(String host,
int port) |
String |
brokerUrlTls(ServiceConfiguration config) |
static String |
brokerUrlTls(String host,
int port) |
void |
close() |
CompletableFuture<Void> |
closeAsync()
Close the current pulsar service.
|
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createConfigurationMetadataStore() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createLocalMetadataStore() |
LedgerOffloader |
createManagedLedgerOffloader(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies) |
PulsarAdmin |
getAdminClient() |
CompletableFuture<Set<String>> |
getAvailableBookiesAsync() |
BookKeeper |
getBookKeeperClient() |
BookKeeperClientFactory |
getBookKeeperClientFactory() |
Optional<Integer> |
getBrokerListenPort() |
Optional<Integer> |
getBrokerListenPortTls() |
BrokerService |
getBrokerService()
Get a reference of the current BrokerService instance associated with the current
PulsarService instance.
|
ScheduledExecutorService |
getCacheExecutor() |
org.apache.pulsar.client.api.PulsarClient |
getClient() |
Compactor |
getCompactor() |
Compactor |
getCompactor(boolean shouldInitialize) |
protected ScheduledExecutorService |
getCompactorExecutor() |
ServiceConfiguration |
getConfiguration()
Get the current service configuration.
|
ConfigurationCacheService |
getConfigurationCache() |
org.apache.pulsar.metadata.api.coordination.CoordinationService |
getCoordinationService() |
ScheduledExecutorService |
getExecutor() |
org.apache.pulsar.common.conf.InternalConfigurationData |
getInternalConfigurationData() |
LeaderElectionService |
getLeaderElectionService()
Get a reference of the current LeaderElectionService instance associated with the current
PulsarService instance.
|
Optional<Integer> |
getListenPortHTTP() |
Optional<Integer> |
getListenPortHTTPS() |
ScheduledExecutorService |
getLoadManagerExecutor() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
getLocalMetadataStore() |
ZooKeeperCache |
getLocalZkCache() |
LocalZooKeeperCacheService |
getLocalZkCacheService() |
ManagedLedgerStorage |
getManagedLedgerClientFactory() |
ManagedLedgerFactory |
getManagedLedgerFactory() |
LedgerOffloader |
getManagedLedgerOffloader(org.apache.pulsar.common.naming.NamespaceName namespaceName,
org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies)
First, get LedgerOffloader from local map cache,
create new LedgerOffloader if not in cache or
the OffloadPolicies changed, return the LedgerOffloader directly if exist in cache
and the OffloadPolicies not changed.
|
String |
getMetadataServiceUri()
Get default bookkeeper metadata service uri.
|
MetricsGenerator |
getMetricsGenerator() |
NamespaceService |
getNamespaceService()
Get a reference of the current namespace service instance.
|
Supplier<NamespaceService> |
getNamespaceServiceProvider() |
protected org.apache.bookkeeper.common.util.OrderedScheduler |
getOffloaderScheduler(org.apache.pulsar.common.policies.data.OffloadPoliciesImpl offloadPolicies) |
org.apache.bookkeeper.common.util.OrderedExecutor |
getOrderedExecutor() |
Map<String,String> |
getProtocolDataToAdvertise() |
ResourceUsageTransportManager |
getResourceUsageTransportManager() |
String |
getSafeBrokerServiceUrl() |
String |
getSafeWebServiceAddress() |
ZooKeeperSessionWatcher.ShutdownService |
getShutdownService() |
PulsarService.State |
getState()
Get the current pulsar state.
|
String |
getStatusFilePath() |
TopicPoliciesService |
getTopicPoliciesService() |
org.apache.pulsar.client.api.transaction.TransactionBufferClient |
getTransactionBufferClient() |
TransactionBufferProvider |
getTransactionBufferProvider() |
TransactionMetadataStoreService |
getTransactionMetadataStoreService() |
ScheduledExecutorService |
getTransactionReplayExecutor() |
Optional<WorkerConfig> |
getWorkerConfig()
Get the current function worker service configuration.
|
WorkerService |
getWorkerService() |
Optional<WorkerService> |
getWorkerServiceOpt() |
ZooKeeper |
getZkClient() |
ZooKeeperClientFactory |
getZooKeeperClientFactory() |
static WorkerConfig |
initializeWorkerConfigFromBrokerConfig(ServiceConfiguration brokerConfig,
String workerConfigFile) |
void |
loadNamespaceTopics(NamespaceBundle bundle)
Load all the topics contained in a namespace.
|
BookKeeperClientFactory |
newBookKeeperClientFactory() |
protected BrokerService |
newBrokerService(PulsarService pulsar) |
Compactor |
newCompactor() |
void |
start()
Start the pulsar service instance.
|
protected void |
startLeaderElectionService() |
protected void |
startLoadManagementService() |
protected void |
startNamespaceService() |
protected void |
startZkCacheService() |
void |
waitUntilClosed()
Block until the service is finally closed.
|
String |
webAddress(ServiceConfiguration config) |
static String |
webAddress(String host,
int port) |
String |
webAddressTls(ServiceConfiguration config) |
static String |
webAddressTls(String host,
int port) |