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() |
CompletableFuture<Map<String,Collection<String>>> |
getAssignmentsAsync() |
List<WorkerInfo> |
getCluster() |
CompletableFuture<List<WorkerInfo>> |
getClusterAsync() |
WorkerInfo |
getClusterLeader() |
CompletableFuture<WorkerInfo> |
getClusterLeaderAsync() |
List<WorkerFunctionInstanceStats> |
getFunctionsStats() |
CompletableFuture<List<WorkerFunctionInstanceStats>> |
getFunctionsStatsAsync() |
Collection<Metrics> |
getMetrics() |
CompletableFuture<Collection<Metrics>> |
getMetricsAsync() |
void |
rebalance() |
CompletableFuture<Void> |
rebalanceAsync() |
asyncDeleteRequest, asyncDeleteRequest, asyncGetRequest, asyncPostRequest, asyncPutRequest, getApiException, getApiException, getReasonFromServer, request, requestAsync, syncpublic WorkerImpl(javax.ws.rs.client.WebTarget web,
org.apache.pulsar.client.api.Authentication auth,
long readTimeoutMs)
public List<WorkerFunctionInstanceStats> getFunctionsStats() throws PulsarAdminException
getFunctionsStats in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
getFunctionsStatsAsync in interface Workerpublic Collection<Metrics> getMetrics() throws PulsarAdminException
getMetrics in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Collection<Metrics>> getMetricsAsync()
getMetricsAsync in interface Workerpublic List<WorkerInfo> getCluster() throws PulsarAdminException
getCluster in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<WorkerInfo>> getClusterAsync()
getClusterAsync in interface Workerpublic WorkerInfo getClusterLeader() throws PulsarAdminException
getClusterLeader in interface WorkerPulsarAdminExceptionpublic CompletableFuture<WorkerInfo> getClusterLeaderAsync()
getClusterLeaderAsync in interface Workerpublic Map<String,Collection<String>> getAssignments() throws PulsarAdminException
getAssignments in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Map<String,Collection<String>>> getAssignmentsAsync()
getAssignmentsAsync in interface Workerpublic void rebalance()
throws PulsarAdminException
rebalance in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Void> rebalanceAsync()
rebalanceAsync in interface WorkerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.