public class WorkerImpl extends BaseResource implements Worker
auth, readTimeoutMs| Constructor and Description |
|---|
WorkerImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs) |
| 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.
|
asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, request, requestAsyncpublic WorkerImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats> getFunctionsStats() throws PulsarAdminException
WorkergetFunctionsStats in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
WorkergetFunctionsStatsAsync in interface Workerpublic Collection<org.apache.pulsar.common.stats.Metrics> getMetrics() throws PulsarAdminException
WorkergetMetrics in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Collection<org.apache.pulsar.common.stats.Metrics>> getMetricsAsync()
WorkergetMetricsAsync in interface Workerpublic List<org.apache.pulsar.common.functions.WorkerInfo> getCluster() throws PulsarAdminException
WorkergetCluster in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.common.functions.WorkerInfo>> getClusterAsync()
WorkergetClusterAsync in interface Workerpublic org.apache.pulsar.common.functions.WorkerInfo getClusterLeader()
throws PulsarAdminException
WorkergetClusterLeader in interface WorkerPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.functions.WorkerInfo> getClusterLeaderAsync()
WorkergetClusterLeaderAsync in interface Workerpublic Map<String,Collection<String>> getAssignments() throws PulsarAdminException
WorkergetAssignments in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Map<String,Collection<String>>> getAssignmentsAsync()
WorkergetAssignmentsAsync in interface WorkerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.