public class BrokersImpl extends BaseResource implements Brokers
auth, readTimeoutMs| Constructor and Description |
|---|
BrokersImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsyncpublic BrokersImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<String> getActiveBrokers(String cluster) throws PulsarAdminException
getActiveBrokers in interface BrokersPulsarAdminExceptionpublic CompletableFuture<List<String>> getActiveBrokersAsync(String cluster)
getActiveBrokersAsync in interface Brokerspublic BrokerInfo getLeaderBroker() throws PulsarAdminException
getLeaderBroker in interface BrokersPulsarAdminExceptionpublic CompletableFuture<BrokerInfo> getLeaderBrokerAsync()
getLeaderBrokerAsync in interface Brokerspublic Map<String,NamespaceOwnershipStatus> getOwnedNamespaces(String cluster, String brokerUrl) throws PulsarAdminException
getOwnedNamespaces in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Map<String,NamespaceOwnershipStatus>> getOwnedNamespacesAsync(String cluster, String brokerUrl)
getOwnedNamespacesAsync in interface Brokerspublic void updateDynamicConfiguration(String configName, String configValue) throws PulsarAdminException
updateDynamicConfiguration in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Void> updateDynamicConfigurationAsync(String configName, String configValue)
updateDynamicConfigurationAsync in interface Brokerspublic void deleteDynamicConfiguration(String configName) throws PulsarAdminException
deleteDynamicConfiguration in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Void> deleteDynamicConfigurationAsync(String configName)
deleteDynamicConfigurationAsync in interface Brokerspublic Map<String,String> getAllDynamicConfigurations() throws PulsarAdminException
getAllDynamicConfigurations in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Map<String,String>> getAllDynamicConfigurationsAsync()
getAllDynamicConfigurationsAsync in interface Brokerspublic List<String> getDynamicConfigurationNames() throws PulsarAdminException
getDynamicConfigurationNames in interface BrokersPulsarAdminExceptionpublic CompletableFuture<List<String>> getDynamicConfigurationNamesAsync()
getDynamicConfigurationNamesAsync in interface Brokerspublic Map<String,String> getRuntimeConfigurations() throws PulsarAdminException
getRuntimeConfigurations in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Map<String,String>> getRuntimeConfigurationsAsync()
getRuntimeConfigurationsAsync in interface Brokerspublic InternalConfigurationData getInternalConfigurationData() throws PulsarAdminException
getInternalConfigurationData in interface BrokersPulsarAdminExceptionpublic CompletableFuture<InternalConfigurationData> getInternalConfigurationDataAsync()
getInternalConfigurationDataAsync in interface Brokerspublic void backlogQuotaCheck()
throws PulsarAdminException
backlogQuotaCheck in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Void> backlogQuotaCheckAsync()
backlogQuotaCheckAsync in interface Brokerspublic void healthcheck()
throws PulsarAdminException
healthcheck in interface BrokersPulsarAdminExceptionpublic CompletableFuture<Void> healthcheckAsync()
healthcheckAsync in interface Brokerspublic String getVersion() throws PulsarAdminException
getVersion in interface BrokersPulsarAdminExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.