@Path(value="/worker") public class Worker extends AdminResource implements Supplier<WorkerService>
namespaceName, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
Worker() |
| Modifier and Type | Method and Description |
|---|---|
void |
drain() |
void |
drainAtLeader(String workerId) |
WorkerService |
get() |
Map<String,Collection<String>> |
getAssignments() |
List<org.apache.pulsar.common.functions.WorkerInfo> |
getCluster() |
org.apache.pulsar.common.functions.WorkerInfo |
getClusterLeader() |
List<org.apache.pulsar.common.io.ConnectorDefinition> |
getConnectorsList() |
LongRunningProcessStatus |
getDrainStatus() |
LongRunningProcessStatus |
getDrainStatusFromLeader(String workerId) |
Boolean |
isLeaderReady() |
void |
rebalance() |
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getSchemaCompatibilityStrategyAsync, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, jsonMapper, mergeNamespaceWithDefaults, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicName, validateTopicNamebookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, handleCommonRestAsyncException, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateTenantOperation, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperationpublic WorkerService get()
get in interface Supplier<WorkerService>@GET @Path(value="/cluster") @Produces(value="application/json") public List<org.apache.pulsar.common.functions.WorkerInfo> getCluster()
@GET @Path(value="/cluster/leader") @Produces(value="application/json") public org.apache.pulsar.common.functions.WorkerInfo getClusterLeader()
@GET @Path(value="/assignments") @Produces(value="application/json") public Map<String,Collection<String>> getAssignments()
@GET @Path(value="/connectors") @Produces(value="application/json") public List<org.apache.pulsar.common.io.ConnectorDefinition> getConnectorsList() throws IOException
IOException@PUT @Path(value="/rebalance") public void rebalance()
@PUT
@Path(value="/leader/drain")
public void drainAtLeader(@QueryParam(value="workerId")
String workerId)
@PUT @Path(value="/drain") public void drain()
@GET @Path(value="/leader/drain") public LongRunningProcessStatus getDrainStatusFromLeader(@QueryParam(value="workerId") String workerId)
@GET @Path(value="/drain") public LongRunningProcessStatus getDrainStatus()
@GET @Path(value="/cluster/leader/ready") public Boolean isLeaderReady()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.