Class Worker
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.v2.Worker
- All Implemented Interfaces:
Supplier<WorkerService>
-
Field Summary
Fields inherited from class org.apache.pulsar.broker.admin.AdminResource
namespaceName, topicNameFields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, servletContext, uri -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrain()voiddrainAtLeader(String workerId) get()List<org.apache.pulsar.common.functions.WorkerInfo>org.apache.pulsar.common.functions.WorkerInfoList<org.apache.pulsar.common.io.ConnectorDefinition>getDrainStatusFromLeader(String workerId) voidMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
autoSubscriptionCreationOverride, bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, clusters, clustersAsync, dispatchRate, domain, filterSystemTopic, getAuthorizationService, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCheckTopicExists, internalCreatePartitionedTopic, internalCreatePartitionedTopic, internalCreatePartitionedTopicToReplicatedClustersInBackground, isLeaderBroker, isManagedLedgerNotFoundException, isNot307And404Exception, isNotFoundException, isRedirectException, namespaceBacklogQuota, objectReader, objectWriter, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateEntryFilters, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateOffloadPolicies, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
authParams, bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, loadBalanceResources, maybeRedirectToBroker, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
Worker
public Worker()
-
-
Method Details
-
get
- Specified by:
getin interfaceSupplier<WorkerService>
-
getCluster
@GET @Path("/cluster") @Produces("application/json") public List<org.apache.pulsar.common.functions.WorkerInfo> getCluster() -
getClusterLeader
@GET @Path("/cluster/leader") @Produces("application/json") public org.apache.pulsar.common.functions.WorkerInfo getClusterLeader() -
getAssignments
@GET @Path("/assignments") @Produces("application/json") public Map<String,Collection<String>> getAssignments() -
getConnectorsList
@GET @Path("/connectors") @Produces("application/json") public List<org.apache.pulsar.common.io.ConnectorDefinition> getConnectorsList() throws IOException- Throws:
IOException
-
rebalance
@PUT @Path("/rebalance") public void rebalance() -
drainAtLeader
-
drain
@PUT @Path("/drain") public void drain() -
getDrainStatusFromLeader
@GET @Path("/leader/drain") public LongRunningProcessStatus getDrainStatusFromLeader(@QueryParam("workerId") String workerId) -
getDrainStatus
-
isLeaderReady
-