@Path(value="/non-persistent") @Produces(value="application/json") public class NonPersistentTopics extends PersistentTopics
namespaceName, topicNamehttpRequest, servletContext, uri| Constructor and Description |
|---|
NonPersistentTopics() |
| Modifier and Type | Method and Description |
|---|---|
void |
createPartitionedTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String encodedTopic,
int numPartitions,
boolean createLocalTopicOnly) |
org.apache.pulsar.common.policies.data.PersistentTopicInternalStats |
getInternalStats(String tenant,
String namespace,
String encodedTopic,
boolean authoritative,
boolean metadata) |
void |
getList(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String nsBundle) |
void |
getListFromBundle(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String bundleRange) |
org.apache.pulsar.common.partition.PartitionedTopicMetadata |
getPartitionedMetadata(String tenant,
String namespace,
String encodedTopic,
boolean authoritative,
boolean checkAllowAutoCreation) |
void |
getPartitionedStats(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String encodedTopic,
boolean perPartition,
boolean authoritative,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize,
boolean getEarliestTimeInBacklog) |
org.apache.pulsar.common.policies.data.NonPersistentTopicStats |
getStats(String tenant,
String namespace,
String encodedTopic,
boolean authoritative,
boolean getPreciseBacklog,
boolean subscriptionBacklogSize,
boolean getEarliestTimeInBacklog) |
void |
truncateTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String encodedTopic,
boolean authoritative) |
void |
unloadTopic(javax.ws.rs.container.AsyncResponse asyncResponse,
String tenant,
String namespace,
String encodedTopic,
boolean authoritative) |
protected void |
validateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName,
boolean authoritative) |
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, 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, updatePartitionedTopicgetPartitionedTopicMetadata, 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, internalGetManagedLedgerInfo, internalGetManagedLedgerInfoForNonPartitionedTopic, internalGetMaxConsumers, internalGetMaxConsumersPerSubscription, internalGetMaxMessageSize, internalGetMaxProducers, internalGetMaxSubscriptionsPerTopic, internalGetMaxUnackedMessagesOnConsumer, internalGetMaxUnackedMessagesOnSubscription, internalGetMessageById, internalGetMessageIdByTimestamp, internalGetOffloadPolicies, internalGetPartitionedMetadata, internalGetPartitionedStats, internalGetPartitionedStatsInternal, internalGetPartitionedTopicList, internalGetPermissionsOnTopic, internalGetPersistence, 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, internalResetCursor, 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, preValidation, unsafeGetPartitionedTopicMetadataAsync, validateAdminOperationOnTopic, validateCreateTopicbookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, dispatchRate, domain, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getSchemaCompatibilityStrategyAsync, getTopicPartitionList, getTopicPoliciesAsyncWithRetry, getTopicPoliciesAsyncWithRetry, internalCreatePartitionedTopic, internalCreatePartitionedTopic, isLeaderBroker, isManagedLedgerNotFoundException, isNamespaceReplicated, isRedirectException, jsonMapper, namespaceBacklogQuota, replicatorDispatchRate, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePersistentTopicName, validatePersistentTopicName, validatePoliciesReadOnlyAccess, validatePoliciesReadOnlyAccessAsync, validateSuperUserAccess, validateTopicName, validateTopicNamebookieResources, canUpdateCluster, checkAuthorization, 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, 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@GET
@Path(value="/{tenant}/{namespace}/{topic}/partitions")
public org.apache.pulsar.common.partition.PartitionedTopicMetadata getPartitionedMetadata(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="checkAllowAutoCreation") @DefaultValue(value="false")
boolean checkAllowAutoCreation)
getPartitionedMetadata in class PersistentTopics@GET
@Path(value="{tenant}/{namespace}/{topic}/stats")
public org.apache.pulsar.common.policies.data.NonPersistentTopicStats getStats(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="getPreciseBacklog") @DefaultValue(value="false")
boolean getPreciseBacklog,
@QueryParam(value="subscriptionBacklogSize") @DefaultValue(value="false")
boolean subscriptionBacklogSize,
@QueryParam(value="getEarliestTimeInBacklog") @DefaultValue(value="false")
boolean getEarliestTimeInBacklog)
getStats in class PersistentTopics@GET
@Path(value="{tenant}/{namespace}/{topic}/internalStats")
public org.apache.pulsar.common.policies.data.PersistentTopicInternalStats getInternalStats(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="metadata") @DefaultValue(value="false")
boolean metadata)
getInternalStats in class PersistentTopics@PUT
@Path(value="/{tenant}/{namespace}/{topic}/partitions")
public void createPartitionedTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
int numPartitions,
@QueryParam(value="createLocalTopicOnly") @DefaultValue(value="false")
boolean createLocalTopicOnly)
createPartitionedTopic in class PersistentTopics@GET
@Path(value="{tenant}/{namespace}/{topic}/partitioned-stats")
public void getPartitionedStats(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="perPartition") @DefaultValue(value="true")
boolean perPartition,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@QueryParam(value="getPreciseBacklog") @DefaultValue(value="false")
boolean getPreciseBacklog,
@QueryParam(value="subscriptionBacklogSize") @DefaultValue(value="false")
boolean subscriptionBacklogSize,
@QueryParam(value="getEarliestTimeInBacklog") @DefaultValue(value="false")
boolean getEarliestTimeInBacklog)
getPartitionedStats in class PersistentTopics@PUT
@Path(value="/{tenant}/{namespace}/{topic}/unload")
public void unloadTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
unloadTopic in class PersistentTopics@GET
@Path(value="/{tenant}/{namespace}")
public void getList(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@QueryParam(value="bundle")
String nsBundle)
getList in class PersistentTopics@GET
@Path(value="/{tenant}/{namespace}/{bundle}")
public void getListFromBundle(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="bundle")
String bundleRange)
@DELETE
@Path(value="/{tenant}/{namespace}/{topic}/truncate")
public void truncateTopic(@Suspended
javax.ws.rs.container.AsyncResponse asyncResponse,
@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic") @Encoded
String encodedTopic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative)
truncateTopic in class PersistentTopicsprotected void validateAdminOperationOnTopic(org.apache.pulsar.common.naming.TopicName topicName,
boolean authoritative)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.