public class BrokerStatsImpl extends BaseResource implements BrokerStats
auth, readTimeoutMs| Constructor and Description |
|---|
BrokerStatsImpl(javax.ws.rs.client.WebTarget target,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pulsar.common.stats.AllocatorStats |
getAllocatorStats(String allocatorName)
Get the stats for the Netty allocator.
|
CompletableFuture<org.apache.pulsar.common.stats.AllocatorStats> |
getAllocatorStatsAsync(String allocatorName)
Get the stats for the Netty allocator asynchronously.
|
com.google.gson.JsonObject |
getBrokerResourceAvailability(String namespace) |
org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport |
getLoadReport()
Get load for this broker.
|
CompletableFuture<org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport> |
getLoadReportAsync()
Get load for this broker asynchronously.
|
com.google.gson.JsonArray |
getMBeans()
Requests JSON string server mbean dump.
|
CompletableFuture<com.google.gson.JsonArray> |
getMBeansAsync()
Requests JSON string server mbean dump asynchronously.
|
com.google.gson.JsonArray |
getMetrics()
Returns Monitoring metrics.
|
CompletableFuture<com.google.gson.JsonArray> |
getMetricsAsync()
Returns Monitoring metrics asynchronously.
|
com.google.gson.JsonObject |
getPendingBookieOpsStats()
Get pending bookie client op stats by namespace.
|
CompletableFuture<com.google.gson.JsonObject> |
getPendingBookieOpsStatsAsync()
Get pending bookie client op stats by namespace asynchronously.
|
com.google.gson.JsonObject |
getTopics()
Returns JSON string topics stats.
|
CompletableFuture<com.google.gson.JsonObject> |
getTopicsAsync()
Returns JSON string topics stats asynchronously.
|
asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, request, requestAsyncpublic BrokerStatsImpl(javax.ws.rs.client.WebTarget target,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public com.google.gson.JsonArray getMetrics()
throws PulsarAdminException
BrokerStatsgetMetrics in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<com.google.gson.JsonArray> getMetricsAsync()
BrokerStatsgetMetricsAsync in interface BrokerStatspublic org.apache.pulsar.common.stats.AllocatorStats getAllocatorStats(String allocatorName) throws PulsarAdminException
BrokerStatsgetAllocatorStats in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.stats.AllocatorStats> getAllocatorStatsAsync(String allocatorName)
BrokerStatsgetAllocatorStatsAsync in interface BrokerStatspublic com.google.gson.JsonArray getMBeans()
throws PulsarAdminException
BrokerStatsgetMBeans in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<com.google.gson.JsonArray> getMBeansAsync()
BrokerStatsgetMBeansAsync in interface BrokerStatspublic com.google.gson.JsonObject getTopics()
throws PulsarAdminException
BrokerStatsgetTopics in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<com.google.gson.JsonObject> getTopicsAsync()
BrokerStatsgetTopicsAsync in interface BrokerStatspublic org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport getLoadReport()
throws PulsarAdminException
BrokerStatsgetLoadReport in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport> getLoadReportAsync()
BrokerStatsgetLoadReportAsync in interface BrokerStatspublic com.google.gson.JsonObject getPendingBookieOpsStats()
throws PulsarAdminException
BrokerStatsgetPendingBookieOpsStats in interface BrokerStatsPulsarAdminExceptionpublic CompletableFuture<com.google.gson.JsonObject> getPendingBookieOpsStatsAsync()
BrokerStatsgetPendingBookieOpsStatsAsync in interface BrokerStatspublic com.google.gson.JsonObject getBrokerResourceAvailability(String namespace) throws PulsarAdminException
PulsarAdminExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.