public interface Worker
| Modifier and Type | Method and Description |
|---|---|
Map<String,Collection<String>> |
getAssignments()
Get the function assignment among the cluster.
|
CompletableFuture<Map<String,Collection<String>>> |
getAssignmentsAsync()
Get the function assignment among the cluster asynchronously.
|
List<WorkerInfo> |
getCluster()
Get List of all workers belonging to this cluster.
|
CompletableFuture<List<WorkerInfo>> |
getClusterAsync()
Get List of all workers belonging to this cluster asynchronously.
|
WorkerInfo |
getClusterLeader()
Get the worker who is the leader of the cluster.
|
CompletableFuture<WorkerInfo> |
getClusterLeaderAsync()
Get the worker who is the leader of the cluster asynchronously.
|
List<WorkerFunctionInstanceStats> |
getFunctionsStats()
Get all functions stats on a worker.
|
CompletableFuture<List<WorkerFunctionInstanceStats>> |
getFunctionsStatsAsync()
Get all functions stats on a worker asynchronously.
|
Collection<Metrics> |
getMetrics()
Get worker metrics.
|
CompletableFuture<Collection<Metrics>> |
getMetricsAsync()
Get worker metrics asynchronously.
|
void |
rebalance()
Triggers a rebalance of functions to workers.
|
CompletableFuture<Void> |
rebalanceAsync()
Triggers a rebalance of functions to workersasynchronously..
|
List<WorkerFunctionInstanceStats> getFunctionsStats() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<List<WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
Collection<Metrics> getMetrics() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<Collection<Metrics>> getMetricsAsync()
List<WorkerInfo> getCluster() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<List<WorkerInfo>> getClusterAsync()
WorkerInfo getClusterLeader() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<WorkerInfo> getClusterLeaderAsync()
Map<String,Collection<String>> getAssignments() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<Map<String,Collection<String>>> getAssignmentsAsync()
void rebalance()
throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<Void> rebalanceAsync()
PulsarAdminExceptionCopyright © 2017–2021 Apache Software Foundation. All rights reserved.