Package org.apache.pulsar.client.admin
Interface BrokerStats
public interface BrokerStats
Admin interface for brokers management.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllocatorStats
(String allocatorName) Get the stats for the Netty allocator.getAllocatorStatsAsync
(String allocatorName) Get the stats for the Netty allocator asynchronously.Get load for this broker.Get load for this broker asynchronously.Requests JSON string server mbean dump.Requests JSON string server mbean dump asynchronously.Returns Monitoring metrics.Returns Monitoring metrics asynchronously.Get pending bookie client op stats by namespace.Get pending bookie client op stats by namespace asynchronously.Returns JSON string topics stats.Returns JSON string topics stats asynchronously.
-
Method Details
-
getMetrics
Returns Monitoring metrics.- Returns:
- Throws:
PulsarAdminException
-
getMetricsAsync
CompletableFuture<String> getMetricsAsync()Returns Monitoring metrics asynchronously.- Returns:
-
getMBeans
Requests JSON string server mbean dump. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
- Throws:
PulsarAdminException
-
getMBeansAsync
CompletableFuture<String> getMBeansAsync()Requests JSON string server mbean dump asynchronously. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
-
getTopics
Returns JSON string topics stats. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
- Throws:
PulsarAdminException
-
getTopicsAsync
CompletableFuture<String> getTopicsAsync()Returns JSON string topics stats asynchronously. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
-
getPendingBookieOpsStats
Get pending bookie client op stats by namespace. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
- Throws:
PulsarAdminException
-
getPendingBookieOpsStatsAsync
CompletableFuture<String> getPendingBookieOpsStatsAsync()Get pending bookie client op stats by namespace asynchronously. Notes: since we don't plan to introspect the response we avoid converting the response into POJO.- Returns:
-
getAllocatorStats
Get the stats for the Netty allocator.- Parameters:
allocatorName
-- Returns:
- Throws:
PulsarAdminException
-
getAllocatorStatsAsync
Get the stats for the Netty allocator asynchronously.- Parameters:
allocatorName
-- Returns:
-
getLoadReport
Get load for this broker.- Returns:
- Throws:
PulsarAdminException
-
getLoadReportAsync
CompletableFuture<LoadManagerReport> getLoadReportAsync()Get load for this broker asynchronously.- Returns:
-