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.GetSchemaResponsevoiddeleteSchema(boolean authoritative, javax.ws.rs.container.AsyncResponse response, boolean force) CompletableFuture<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).voidgetAllSchemas(boolean authoritative, javax.ws.rs.container.AsyncResponse response) getAllSchemasAsync(boolean authoritative) protected static longgetLongSchemaVersion(org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) voidvoidgetSchema(boolean authoritative, javax.ws.rs.container.AsyncResponse response) getSchemaAsync(boolean authoritative) getSchemaAsync(boolean authoritative, String version) voidgetVersionBySchema(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) getVersionBySchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) protected static voidhandleGetSchemaResponse(javax.ws.rs.container.AsyncResponse response, SchemaRegistry.SchemaAndMetadata schema, Throwable error) voidpostSchema(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion>postSchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) protected booleanvoidtestCompatibility(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) 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) Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, 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
-
SchemasResourceBase
public SchemasResourceBase() -
SchemasResourceBase
-
-
Method Details
-
getLongSchemaVersion
protected static long getLongSchemaVersion(org.apache.pulsar.common.protocol.schema.SchemaVersion schemaVersion) -
getSchema
public void getSchema(boolean authoritative, javax.ws.rs.container.AsyncResponse response) -
getSchemaAsync
-
getSchema
public void getSchema(boolean authoritative, String version, javax.ws.rs.container.AsyncResponse response) -
getSchemaAsync
public CompletableFuture<SchemaRegistry.SchemaAndMetadata> getSchemaAsync(boolean authoritative, String version) -
getAllSchemas
public void getAllSchemas(boolean authoritative, javax.ws.rs.container.AsyncResponse response) -
getAllSchemasAsync
public CompletableFuture<List<SchemaRegistry.SchemaAndMetadata>> getAllSchemasAsync(boolean authoritative) -
deleteSchema
public void deleteSchema(boolean authoritative, javax.ws.rs.container.AsyncResponse response, boolean force) -
deleteSchemaAsync
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> deleteSchemaAsync(boolean authoritative, boolean force) -
postSchema
public void postSchema(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) -
postSchemaAsync
public CompletableFuture<org.apache.pulsar.common.protocol.schema.SchemaVersion> postSchemaAsync(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative) -
testCompatibility
public void testCompatibility(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) -
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) -
getVersionBySchema
public void getVersionBySchema(org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload, boolean authoritative, javax.ws.rs.container.AsyncResponse response) -
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
-
handleGetSchemaResponse
protected static void handleGetSchemaResponse(javax.ws.rs.container.AsyncResponse response, SchemaRegistry.SchemaAndMetadata schema, Throwable error) -
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
-