Class SchemasResourceBase
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.SchemasResourceBase
- Direct Known Subclasses:
SchemasResource,SchemasResource
-
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 TypeMethodDescriptionprotected org.apache.pulsar.common.protocol.schema.GetAllVersionsSchemaResponseprotected org.apache.pulsar.common.protocol.schema.GetSchemaResponseCompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>deleteSchemaAsync(boolean authoritative, boolean force) protected Stringdomain()Get the domain of the topic (whether it's persistent or non-persistent).getAllSchemasAsync(boolean authoritative) protected static longgetLongSchemaVersion(org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) getSchemaAsync(boolean authoritative) getSchemaAsync(boolean authoritative, String version) CompletableFuture<org.apache.pulsar.common.policies.data.SchemaMetadata>getSchemaMetadataAsync(boolean authoritative) getVersionBySchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>postSchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) protected booleanCompletableFuture<org.apache.commons.lang3.tuple.Pair<Boolean,org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy>> testCompatibilityAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
autoSubscriptionCreationOverride, bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, clusters, clustersAsync, dispatchRate, 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
-
SchemasResourceBase
public SchemasResourceBase() -
SchemasResourceBase
-
-
Method Details
-
getLongSchemaVersion
protected static long getLongSchemaVersion(org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) -
getSchemaAsync
-
getSchemaAsync
public CompletableFuture<SchemaRegistry.SchemaAndMetadata> getSchemaAsync(boolean authoritative, String version) -
getAllSchemasAsync
public CompletableFuture<List<SchemaRegistry.SchemaAndMetadata>> getAllSchemasAsync(boolean authoritative) -
getSchemaMetadataAsync
public CompletableFuture<org.apache.pulsar.common.policies.data.SchemaMetadata> getSchemaMetadataAsync(boolean authoritative) -
deleteSchemaAsync
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> deleteSchemaAsync(boolean authoritative, boolean force) -
postSchemaAsync
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> postSchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) -
testCompatibilityAsync
public CompletableFuture<org.apache.commons.lang3.tuple.Pair<Boolean,org.apache.pulsar.common.policies.data.SchemaCompatibilityStrategy>> testCompatibilityAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) -
getVersionBySchemaAsync
public CompletableFuture<Long> getVersionBySchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) -
domain
Description copied from class:AdminResourceGet the domain of the topic (whether it's persistent or non-persistent).- Overrides:
domainin classAdminResource
-
convertToSchemaResponse
protected org.apache.pulsar.common.protocol.schema.GetSchemaResponse convertToSchemaResponse(SchemaRegistry.SchemaAndMetadata schema) -
convertToAllVersionsSchemaResponse
protected org.apache.pulsar.common.protocol.schema.GetAllVersionsSchemaResponse convertToAllVersionsSchemaResponse(List<SchemaRegistry.SchemaAndMetadata> schemas) -
shouldPrintErrorLog
-