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<org.apache.pulsar.common.functions.WorkerInfo> |
getCluster() |
CompletableFuture<List<org.apache.pulsar.common.functions.WorkerInfo>> |
getClusterAsync() |
org.apache.pulsar.common.functions.WorkerInfo |
getClusterLeader() |
CompletableFuture<org.apache.pulsar.common.functions.WorkerInfo> |
getClusterLeaderAsync() |
List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats> |
getFunctionsStats() |
CompletableFuture<List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats>> |
getFunctionsStatsAsync() |
Collection<org.apache.pulsar.common.stats.Metrics> |
getMetrics() |
CompletableFuture<Collection<org.apache.pulsar.common.stats.Metrics>> |
getMetricsAsync() |
asyncDeleteRequest, 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
getFunctionsStats in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats>> getFunctionsStatsAsync()
getFunctionsStatsAsync in interface Workerpublic Collection<org.apache.pulsar.common.stats.Metrics> getMetrics() throws PulsarAdminException
getMetrics in interface WorkerPulsarAdminExceptionpublic CompletableFuture<Collection<org.apache.pulsar.common.stats.Metrics>> getMetricsAsync()
getMetricsAsync in interface Workerpublic List<org.apache.pulsar.common.functions.WorkerInfo> getCluster() throws PulsarAdminException
getCluster in interface WorkerPulsarAdminExceptionpublic CompletableFuture<List<org.apache.pulsar.common.functions.WorkerInfo>> getClusterAsync()
getClusterAsync in interface Workerpublic org.apache.pulsar.common.functions.WorkerInfo getClusterLeader()
throws PulsarAdminException
getClusterLeader in interface WorkerPulsarAdminExceptionpublic CompletableFuture<org.apache.pulsar.common.functions.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 WorkerCopyright © 2017–2021 Apache Software Foundation. All rights reserved.