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, topicName
-
Fields inherited from class org.apache.pulsar.broker.web.PulsarWebResource
httpRequest, NOT_IMPLEMENTED, servletContext, uri
-
-
Constructor Summary
Constructors Constructor Description NonPersistentTopics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreatePartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, int numPartitions, boolean createLocalTopicOnly)org.apache.pulsar.common.policies.data.PersistentTopicInternalStatsgetInternalStats(java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, boolean authoritative, boolean metadata)voidgetList(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace)voidgetListFromBundle(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.String bundleRange)org.apache.pulsar.common.partition.PartitionedTopicMetadatagetPartitionedMetadata(java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, boolean authoritative, boolean checkAllowAutoCreation)voidgetPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, boolean perPartition, boolean authoritative, boolean getPreciseBacklog, boolean subscriptionBacklogSize)org.apache.pulsar.common.policies.data.NonPersistentTopicStatsgetStats(java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, boolean authoritative, boolean getPreciseBacklog, boolean subscriptionBacklogSize)voidtruncateTopic(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.String encodedTopic, boolean authoritative)voidunloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.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
compact, compactionStatus, createMissedPartitions, createNonPartitionedTopic, 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, getPublishRate, getReplicatorDispatchRate, getRetention, getSubscribeRate, getSubscriptionDispatchRate, getSubscriptions, getSubscriptionTypesEnabled, grantPermissionsOnTopic, offloadStatus, peekNthMessage, removeBacklogQuota, removeCompactionThreshold, removeDeduplication, removeDispatchRate, removeMaxConsumers, removeMaxConsumersPerSubscription, removeMaxMessageSize, removeMaxProducers, removeMaxSubscriptionsPerTopic, removeMessageTTL, removeOffloadPolicies, removePersistence, removePublishRate, removeReplicatorDispatchRate, removeRetention, removeSubscribeRate, removeSubscriptionDispatchRate, resetCursor, resetCursorOnPosition, revokePermissionsOnTopic, setBacklogQuota, setCompactionThreshold, setDeduplication, setDeduplicationSnapshotInterval, setDelayedDeliveryPolicies, setDispatchRate, setInactiveTopicPolicies, setMaxConsumers, setMaxConsumersPerSubscription, setMaxMessageSize, setMaxProducers, setMaxSubscriptionsPerTopic, setMaxUnackedMessagesOnConsumer, setMaxUnackedMessagesOnSubscription, setMessageTTL, setOffloadPolicies, setPersistence, setPublishRate, setReplicatedSubscriptionStatus, setReplicatorDispatchRate, setRetention, setSubscribeRate, setSubscriptionDispatchRate, setSubscriptionTypesEnabled, skipAllMessages, skipMessages, terminate, terminatePartitionedTopic, triggerOffload, updatePartitionedTopic
-
Methods inherited from class org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
getPartitionedTopicMetadata, handleTopicPolicyException, internalCompactionStatus, internalCreateMissedPartitions, internalCreateNonPartitionedTopic, internalCreateSubscription, internalDeletePartitionedTopic, internalDeleteSubscription, internalDeleteSubscription, internalDeleteSubscriptionForcefully, internalDeleteTopic, internalDeleteTopic, internalDeleteTopicForcefully, internalExamineMessage, internalExpireMessagesByPosition, internalExpireMessagesByTimestamp, internalExpireMessagesForAllSubscriptions, internalGetBacklog, internalGetBacklogQuota, internalGetBacklogSizeByMessageId, internalGetCompactionThreshold, internalGetDeduplication, internalGetDelayedDeliveryPolicies, internalGetDispatchRate, internalGetInactiveTopicPolicies, internalGetInternalStats, internalGetLastMessageId, internalGetList, internalGetListAsync, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMaxUnackedMessagesOnConsumer, internalGetMaxUnackedMessagesOnSubscription, internalGetMessageById, internalGetMessageIdByTimestamp, internalGetOffloadPolicies, internalGetPartitionedMetadata, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicList, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPublishRate, internalGetReplicatorDispatchRate, internalGetRetention, internalGetStats, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptions, internalGetSubscriptionTypesEnabled, internalGrantPermissionsOnTopic, internalHandleResult, internalOffloadStatus, internalPeekNthMessage, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, internalResetCursor, internalResetCursorOnPosition, internalRevokePermissionsOnTopic, internalSetBacklogQuota, internalSetCompactionThreshold, internalSetDeduplication, internalSetDeduplicationSnapshotInterval, internalSetDelayedDeliveryPolicies, internalSetDispatchRate, internalSetInactiveTopicPolicies, internalSetMaxConsumers, internalSetMaxConsumersPerSubscription, internalSetMaxMessageSize, internalSetMaxProducers, internalSetMaxSubscriptionsPerTopic, internalSetMaxUnackedMessagesOnConsumer, internalSetMaxUnackedMessagesOnSubscription, internalSetMessageTTL, internalSetOffloadPolicies, internalSetPersistence, internalSetPublishRate, internalSetReplicatedSubscriptionStatus, internalSetReplicatorDispatchRate, internalSetRetention, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminate, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTruncateNonPartitionedTopic, internalTruncateTopic, internalUnloadTopic, internalUpdatePartitionedTopic, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminAndClientPermission, validateAdminOperationOnTopic, validateCreateTopic
-
Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getPartitionedTopicNotFoundErrorMessage, getSchemaCompatibilityStrategyAsync, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isRedirectException, jsonMapper, mergeNamespaceWithDefaults, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicName, validateTopicName
-
Methods inherited from class org.apache.pulsar.broker.web.PulsarWebResource
bookieResources, canUpdateCluster, checkAuthorizationAsync, checkLocalOrGetPeerReplicationCluster, 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, validateTopicPolicyOperation
-
-
-
-
Method Detail
-
getPartitionedMetadata
@GET @Path("/{tenant}/{namespace}/{topic}/partitions") public org.apache.pulsar.common.partition.PartitionedTopicMetadata getPartitionedMetadata(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("checkAllowAutoCreation") @DefaultValue("false") boolean checkAllowAutoCreation)- Overrides:
getPartitionedMetadatain classPersistentTopics
-
getStats
@GET @Path("{tenant}/{namespace}/{topic}/stats") public org.apache.pulsar.common.policies.data.NonPersistentTopicStats getStats(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative, @QueryParam("getPreciseBacklog") @DefaultValue("false") boolean getPreciseBacklog, @QueryParam("subscriptionBacklogSize") @DefaultValue("false") boolean subscriptionBacklogSize)- Overrides:
getStatsin classPersistentTopics
-
getInternalStats
@GET @Path("{tenant}/{namespace}/{topic}/internalStats") public org.apache.pulsar.common.policies.data.PersistentTopicInternalStats getInternalStats(@PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.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") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.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") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.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)- Overrides:
getPartitionedStatsin classPersistentTopics
-
unloadTopic
@PUT @Path("/{tenant}/{namespace}/{topic}/unload") public void unloadTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.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") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace)- Overrides:
getListin classPersistentTopics
-
getListFromBundle
@GET @Path("/{tenant}/{namespace}/{bundle}") public void getListFromBundle(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("bundle") java.lang.String bundleRange)
-
truncateTopic
@DELETE @Path("/{tenant}/{namespace}/{topic}/truncate") public void truncateTopic(@Suspended javax.ws.rs.container.AsyncResponse asyncResponse, @PathParam("tenant") java.lang.String tenant, @PathParam("namespace") java.lang.String namespace, @PathParam("topic") @Encoded java.lang.String encodedTopic, @QueryParam("authoritative") @DefaultValue("false") boolean authoritative)- Overrides:
truncateTopicin classPersistentTopics
-
validateAdminOperationOnTopic
protected void validateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName, boolean authoritative)
-
-