@Path(value="/worker") public class Worker extends AdminResource implements Supplier<WorkerService>
namespaceName, PARTITIONED_TOPIC_PATH_ZNODE, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
Worker() |
| Modifier and Type | Method and Description |
|---|---|
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() |
Boolean |
isLeaderReady() |
void |
rebalance() |
checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersCache, clustersListCache, dispatchRate, domain, failureDomainCache, failureDomainListCache, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getListOfNamespaces, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getTopicPolicies, globalZk, globalZkCache, internalCreatePartitionedTopic, isLeaderBroker, isNamespaceReplicated, jsonMapper, localCacheService, localPoliciesCache, localZk, localZkCache, managedLedgerListCache, mergeNamespaceWithDefaults, namespaceBacklogQuota, namespaceIsolationPoliciesCache, policiesCache, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tenantsCache, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBrokerName, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateNamespaceOwnershipWithBundles, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicExistedAndCheckAllowAutoCreation, validateTopicName, validateTopicName, zkCreate, zkCreateOptimistic, zkCreateOptimisticAsync, zkPathExists, zkSynccheckAuthorization, checkConnect, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, config, getClusterDataIfDifferentCluster, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, joinPath, originalPrincipal, path, pulsar, setPulsar, splitPath, validateAdminAccessForTenant, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespacePolicyOperation, validateTenantOperation, validateTopicOwnershippublic 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()
@GET @Path(value="/cluster/leader/ready") public Boolean isLeaderReady()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.