Class NonPersistentTopics
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
org.apache.pulsar.broker.admin.v2.PersistentTopics
org.apache.pulsar.broker.admin.v2.NonPersistentTopics
@Path("/non-persistent")
@Produces("application/json")
public class NonPersistentTopics
extends PersistentTopics
-
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 TypeMethodDescriptionvoidcreatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, int numPartitions, boolean createLocalTopicOnly) voidgetInternalStats(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative, boolean metadata) voidgetList(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String nsBundle, boolean includeSystemTopic) voidgetListFromBundle(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String bundleRange) voidgetPartitionedMetadata(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative, boolean checkAllowAutoCreation) voidgetPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean perPartition, boolean authoritative, boolean getPreciseBacklog, boolean subscriptionBacklogSize, boolean getEarliestTimeInBacklog) voidtruncateTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative) voidunloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse, String tenant, String namespace, String encodedTopic, boolean authoritative) protected voidvalidateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName, boolean authoritative) Methods inherited from class org.apache.pulsar.broker.admin.v2.PersistentTopics
analyzeSubscriptionBacklog, compact, compactionStatus, createMissedPartitions, createNonPartitionedTopic, createPartitionedTopic, createSubscription, deleteDeduplicationSnapshotInterval, deleteDelayedDeliveryPolicies, deleteInactiveTopicPolicies, deleteMaxUnackedMessagesOnConsumer, deleteMaxUnackedMessagesOnSubscription, deletePartitionedTopic, deleteSubscription, deleteTopic, examineMessage, expireMessagesForAllSubscriptions, expireTopicMessages, expireTopicMessages, getBacklog, getBacklogQuotaMap, getBacklogSizeByMessageId, getCompactionThreshold, getDeduplication, getDeduplicationSnapshotInterval, getDelayedDeliveryPolicies, getDispatchRate, getInactiveTopicPolicies, getLastMessageId, getManagedLedgerInfo, getMaxConsumers, getMaxConsumersPerSubscription, getMaxMessageSize, getMaxProducers, getMaxSubscriptionsPerTopic, getMaxUnackedMessagesOnConsumer, getMaxUnackedMessagesOnSubscription, getMessageById, getMessageIdByTimestamp, getMessageTTL, getOffloadPolicies, getPartitionedStatsInternal, getPartitionedTopicList, getPermissionsOnTopic, getPersistence, getProperties, getPublishRate, getReplicatedSubscriptionStatus, getReplicationClusters, getReplicatorDispatchRate, getRetention, getSchemaCompatibilityStrategy, getSchemaValidationEnforced, getStats, getSubscribeRate, getSubscriptionDispatchRate, getSubscriptionLevelDispatchRate, getSubscriptionProperties, getSubscriptions, getSubscriptionTypesEnabled, grantPermissionsOnTopic, offloadStatus, peekNthMessage, removeBacklogQuota, removeCompactionThreshold, removeDeduplication, removeDispatchRate, removeMaxConsumers, removeMaxConsumersPerSubscription, removeMaxMessageSize, removeMaxProducers, removeMaxSubscriptionsPerTopic, removeMessageTTL, removeOffloadPolicies, removePersistence, removePublishRate, removeReplicationClusters, removeReplicatorDispatchRate, removeRetention, removeSchemaCompatibilityStrategy, removeSubscribeRate, removeSubscriptionDispatchRate, removeSubscriptionLevelDispatchRate, removeSubscriptionTypesEnabled, resetCursor, resetCursorOnPosition, revokePermissionsOnTopic, setBacklogQuota, setCompactionThreshold, setDeduplication, setDeduplicationSnapshotInterval, setDelayedDeliveryPolicies, setDispatchRate, setInactiveTopicPolicies, setMaxConsumers, setMaxConsumersPerSubscription, setMaxMessageSize, setMaxProducers, setMaxSubscriptionsPerTopic, setMaxUnackedMessagesOnConsumer, setMaxUnackedMessagesOnSubscription, setMessageTTL, setOffloadPolicies, setPersistence, setPublishRate, setReplicatedSubscriptionStatus, setReplicationClusters, setReplicatorDispatchRate, setRetention, setSchemaCompatibilityStrategy, setSchemaValidationEnforced, setSubscribeRate, setSubscriptionDispatchRate, setSubscriptionLevelDispatchRate, setSubscriptionTypesEnabled, skipAllMessages, skipMessages, terminate, terminatePartitionedTopic, triggerOffload, updatePartitionedTopic, updateSubscriptionPropertiesMethods inherited from class org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
getPartitionedTopicMetadata, handleTopicPolicyException, internalAnalyzeSubscriptionBacklog, internalCheckTopicExists, internalCompactionStatusAsync, internalCreateMissedPartitions, internalCreateNonPartitionedTopicAsync, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteSubscription, internalDeleteSubscription, internalDeleteSubscriptionForcefully, internalDeleteTopicAsync, internalExamineMessageAsync, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetBacklogAsync, internalGetBacklogQuota, internalGetBacklogSizeByMessageId, internalGetCompactionThreshold, internalGetDeduplication, internalGetDelayedDeliveryPolicies, internalGetDispatchRate, internalGetInactiveTopicPolicies, internalGetInternalStatsAsync, internalGetLastMessageId, internalGetList, internalGetListAsync, internalGetListAsync, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMaxUnackedMessagesOnConsumer, internalGetMaxUnackedMessagesOnSubscription, internalGetMessageById, internalGetMessageIdByTimestampAsync, internalGetOffloadPolicies, internalGetPartitionedMetadata, internalGetPartitionedMetadataAsync, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicListAsync, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPropertiesAsync, internalGetPublishRate, internalGetReplicatedSubscriptionStatus, internalGetReplicatorDispatchRate, internalGetRetention, internalGetSchemaCompatibilityStrategy, internalGetSchemaValidationEnforced, internalGetStatsAsync, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptionLevelDispatchRate, internalGetSubscriptionProperties, internalGetSubscriptions, internalGetSubscriptionTypesEnabled, internalGrantPermissionsOnTopic, internalOffloadStatus, internalPeekNthMessageAsync, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveReplicationClusters, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalRemoveSubscriptionLevelDispatchRate, internalRemoveSubscriptionTypesEnabled, internalResetCursorAsync, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplication, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatchRate, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetReplicatedSubscriptionStatus, internalSetReplicationClusters, internalSetReplicatorDispatchRate, internalSetRetention, internalSetSchemaCompatibilityStrategy, internalSetSchemaValidationEnforced, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionLevelDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminateAsync, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTruncateNonPartitionedTopicAsync, internalTruncateTopicAsync, internalUnloadTopic, internalUpdatePartitionedTopicAsync, internalUpdateSubscriptionProperties, internalValidateClientVersionAsync, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminOperationOnTopic, validateCreateTopicMethods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, filterSystemTopic, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getNamespaceReplicatedClustersAsync, getPartitionedTopicList, getPartitionedTopicListAsync, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getSubNotFoundErrorMessage, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isNotFoundException, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreateExtendedPartitionsAsync, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadataAsync, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNameMethods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, clusterResources, config, dynamicConfigurationResources, getClusterDataIfDifferentCluster, getLocalPolicies, getPulsarResources, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, resumeAsyncResponseExceptionally, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateBundleOwnershipAsync, validateClusterForTenant, validateClusterForTenantAsync, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleOwnershipAsync, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validatePeerClusterConflictAsync, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
Constructor Details
-
NonPersistentTopics
public NonPersistentTopics()
-
-
Method Details
-
getPartitionedMetadata
@GET @Path("/{tenant}/{namespace}/{topic}/partitions") public void getPartitionedMetadata(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("checkAllowAutoCreation") @DefaultValue("false") boolean checkAllowAutoCreation) - Overrides:
getPartitionedMetadatain classPersistentTopics
-
getInternalStats
@GET @Path("{tenant}/{namespace}/{topic}/internalStats") public void getInternalStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("metadata") @DefaultValue("false") boolean metadata) - Overrides:
getInternalStatsin classPersistentTopics
-
createPartitionedTopic
@PUT @Path("/{tenant}/{namespace}/{topic}/partitions") public void createPartitionedTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, int numPartitions, @QueryParam("createLocalTopicOnly") @DefaultValue("false") boolean createLocalTopicOnly) - Overrides:
createPartitionedTopicin classPersistentTopics
-
getPartitionedStats
@GET @Path("{tenant}/{namespace}/{topic}/partitioned-stats") public void getPartitionedStats(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("perPartition") @DefaultValue("true") boolean perPartition, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("getPreciseBacklog") @DefaultValue("false") boolean getPreciseBacklog, @QueryParam("subscriptionBacklogSize") @DefaultValue("false") boolean subscriptionBacklogSize, @QueryParam("getEarliestTimeInBacklog") @DefaultValue("false") boolean getEarliestTimeInBacklog) - Overrides:
getPartitionedStatsin classPersistentTopics
-
unloadTopic
@PUT @Path("/{tenant}/{namespace}/{topic}/unload") public void unloadTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) - Overrides:
unloadTopicin classPersistentTopics
-
getList
@GET @Path("/{tenant}/{namespace}") public void getList(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @QueryParam("bundle") String nsBundle, @QueryParam("includeSystemTopic") boolean includeSystemTopic) - Overrides:
getListin classPersistentTopics
-
getListFromBundle
-
truncateTopic
@DELETE @Path("/{tenant}/{namespace}/{topic}/truncate") public void truncateTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("topic") @Encoded String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative) - Overrides:
truncateTopicin classPersistentTopics
-
validateAdminOperationOnTopic
protected void validateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName, boolean authoritative)
-