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<org.apache.pulsar.common.functions.WorkerInfo> |
getCluster()
Get List of all workers belonging to this cluster.
|
CompletableFuture<List<org.apache.pulsar.common.functions.WorkerInfo>> |
getClusterAsync()
Get List of all workers belonging to this cluster asynchronously.
|
org.apache.pulsar.common.functions.WorkerInfo |
getClusterLeader()
Get the worker who is the leader of the cluster.
|
CompletableFuture<org.apache.pulsar.common.functions.WorkerInfo> |
getClusterLeaderAsync()
Get the worker who is the leader of the cluster asynchronously.
|
List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats> |
getFunctionsStats()
Get all functions stats on a worker.
|
CompletableFuture<List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats>> |
getFunctionsStatsAsync()
Get all functions stats on a worker asynchronously.
|
Collection<org.apache.pulsar.common.stats.Metrics> |
getMetrics()
Get worker metrics.
|
CompletableFuture<Collection<org.apache.pulsar.common.stats.Metrics>> |
getMetricsAsync()
Get worker metrics asynchronously.
|
List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats> getFunctionsStats() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
Collection<org.apache.pulsar.common.stats.Metrics> getMetrics() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<Collection<org.apache.pulsar.common.stats.Metrics>> getMetricsAsync()
List<org.apache.pulsar.common.functions.WorkerInfo> getCluster() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<List<org.apache.pulsar.common.functions.WorkerInfo>> getClusterAsync()
org.apache.pulsar.common.functions.WorkerInfo getClusterLeader()
throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<org.apache.pulsar.common.functions.WorkerInfo> getClusterLeaderAsync()
Map<String,Collection<String>> getAssignments() throws PulsarAdminException
PulsarAdminExceptionCompletableFuture<Map<String,Collection<String>>> getAssignmentsAsync()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.