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, 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, java.lang.String nsBundle)voidgetListFromBundle(javax.ws.rs.container.AsyncResponse asyncResponse, java.lang.String tenant, java.lang.String namespace, java.lang.String bundleRange)voidgetPartitionedMetadata(javax.ws.rs.container.AsyncResponse asyncResponse, 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, boolean getEarliestTimeInBacklog)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, boolean getEarliestTimeInBacklog)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, 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, getSubscribeRate, getSubscriptionDispatchRate, getSubscriptions, getSubscriptionTypesEnabled, grantPermissionsOnTopic, offloadStatus, peekNthMessage, removeBacklogQuota, removeCompactionThreshold, removeDeduplication, removeDispatchRate, removeMaxConsumers, removeMaxConsumersPerSubscription, removeMaxMessageSize, removeMaxProducers, removeMaxSubscriptionsPerTopic, removeMessageTTL, removeOffloadPolicies, removePersistence, removePublishRate, removeReplicationClusters, removeReplicatorDispatchRate, removeRetention, removeSchemaCompatibilityStrategy, removeSubscribeRate, removeSubscriptionDispatchRate, 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, setSubscribeRate, setSubscriptionDispatchRate, setSubscriptionTypesEnabled, skipAllMessages, skipMessages, terminate, terminatePartitionedTopic, triggerOffload, updatePartitionedTopic, updateSubscriptionProperties
-
Methods inherited from class org.apache.pulsar.broker.admin.impl.PersistentTopicsBase
getPartitionedTopicMetadata, handleTopicPolicyException, internalCheckTopicExists, 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, internalGetPartitionedMetadataAsync, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicList, internalGetPermissionsOnTopic, internalGetPersistence, internalGetPropertiesAsync, internalGetPublishRate, internalGetReplicatedSubscriptionStatus, internalGetReplicatorDispatchRate, internalGetRetention, internalGetSchemaCompatibilityStrategy, internalGetStats, internalGetSubscribeRate, internalGetSubscriptionDispatchRate, internalGetSubscriptions, internalGetSubscriptionTypesEnabled, internalGrantPermissionsOnTopic, internalOffloadStatus, internalPeekNthMessage, internalRemoveCompactionThreshold, internalRemoveDispatchRate, internalRemoveMaxConsumers, internalRemoveMaxConsumersPerSubscription, internalRemoveMaxProducers, internalRemovePersistence, internalRemovePublishRate, internalRemoveReplicationClusters, internalRemoveRetention, internalRemoveSubscribeRate, internalRemoveSubscriptionDispatchRate, 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, internalSetSubscribeRate, internalSetSubscriptionDispatchRate, internalSetSubscriptionTypesEnabled, internalSkipAllMessages, internalSkipMessages, internalTerminate, internalTerminatePartitionedTopic, internalTriggerCompaction, internalTriggerCompactionNonPartitionedTopic, internalTriggerOffload, internalTruncateNonPartitionedTopic, internalTruncateTopic, internalUnloadTopic, internalUpdatePartitionedTopic, internalUpdateSubscriptionProperties, internalValidateClientVersionAsync, preValidation, unsafeGetPartitionedTopicMetadataAsync, 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, getSchemaCompatibilityStrategyAsync, getSchemaCompatibilityStrategyAsyncWithoutAuth, getTopicNotFoundErrorMessage, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateAndGetWorkerService, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, 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, hasActiveNamespace, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, namespaceIsolationPolicies, namespaceResources, originalPrincipal, pulsar, resourceGroupResources, setPulsar, splitPath, sync, tenantResources, topicResources, validateAdminAccessForTenant, validateAdminAccessForTenantAsync, validateAdminAccessForTenantAsync, validateBrokerName, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateClusterOwnershipAsync, validateGlobalNamespaceOwnership, validateGlobalNamespaceOwnershipAsync, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespaceOperationAsync, validateNamespacePolicyOperation, validateNamespacePolicyOperationAsync, validatePeerClusterConflict, validateSuperUserAccessAsync, validateTenantOperation, validateTenantOperationAsync, validateTopicOperation, validateTopicOperation, validateTopicOperationAsync, validateTopicOperationAsync, validateTopicOwnership, validateTopicOwnershipAsync, validateTopicPolicyOperation, validateTopicPolicyOperationAsync
-
-
-
-
Method Detail
-
getPartitionedMetadata
@GET @Path("/{tenant}/{namespace}/{topic}/partitions") public void getPartitionedMetadata(@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, @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, @QueryParam("getEarliestTimeInBacklog") @DefaultValue("false") boolean getEarliestTimeInBacklog)- 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, @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") 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, @QueryParam("bundle") java.lang.String nsBundle)- 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)
-
-