Package org.apache.pulsar.client.admin
Interface Worker
-
public interface WorkerAdmin interface for worker stats management.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>getAssignments()Get the function assignment among the cluster.java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>>getAssignmentsAsync()Get the function assignment among the cluster asynchronously.java.util.List<WorkerInfo>getCluster()Get List of all workers belonging to this cluster.java.util.concurrent.CompletableFuture<java.util.List<WorkerInfo>>getClusterAsync()Get List of all workers belonging to this cluster asynchronously.WorkerInfogetClusterLeader()Get the worker who is the leader of the cluster.java.util.concurrent.CompletableFuture<WorkerInfo>getClusterLeaderAsync()Get the worker who is the leader of the cluster asynchronously.java.util.List<WorkerFunctionInstanceStats>getFunctionsStats()Get all functions stats on a worker.java.util.concurrent.CompletableFuture<java.util.List<WorkerFunctionInstanceStats>>getFunctionsStatsAsync()Get all functions stats on a worker asynchronously.java.util.Collection<Metrics>getMetrics()Get worker metrics.java.util.concurrent.CompletableFuture<java.util.Collection<Metrics>>getMetricsAsync()Get worker metrics asynchronously.
-
-
-
Method Detail
-
getFunctionsStats
java.util.List<WorkerFunctionInstanceStats> getFunctionsStats() throws PulsarAdminException
Get all functions stats on a worker.- Returns:
- Throws:
PulsarAdminException
-
getFunctionsStatsAsync
java.util.concurrent.CompletableFuture<java.util.List<WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
Get all functions stats on a worker asynchronously.- Returns:
-
getMetrics
java.util.Collection<Metrics> getMetrics() throws PulsarAdminException
Get worker metrics.- Returns:
- Throws:
PulsarAdminException
-
getMetricsAsync
java.util.concurrent.CompletableFuture<java.util.Collection<Metrics>> getMetricsAsync()
Get worker metrics asynchronously.- Returns:
-
getCluster
java.util.List<WorkerInfo> getCluster() throws PulsarAdminException
Get List of all workers belonging to this cluster.- Returns:
- Throws:
PulsarAdminException
-
getClusterAsync
java.util.concurrent.CompletableFuture<java.util.List<WorkerInfo>> getClusterAsync()
Get List of all workers belonging to this cluster asynchronously.- Returns:
-
getClusterLeader
WorkerInfo getClusterLeader() throws PulsarAdminException
Get the worker who is the leader of the cluster.- Returns:
- Throws:
PulsarAdminException
-
getClusterLeaderAsync
java.util.concurrent.CompletableFuture<WorkerInfo> getClusterLeaderAsync()
Get the worker who is the leader of the cluster asynchronously.- Returns:
-
getAssignments
java.util.Map<java.lang.String,java.util.Collection<java.lang.String>> getAssignments() throws PulsarAdminExceptionGet the function assignment among the cluster.- Returns:
- Throws:
PulsarAdminException
-
getAssignmentsAsync
java.util.concurrent.CompletableFuture<java.util.Map<java.lang.String,java.util.Collection<java.lang.String>>> getAssignmentsAsync()
Get the function assignment among the cluster asynchronously.- Returns:
-
-