@Path(value="/schemas") public class SchemasResource extends AdminResource
namespaceName, PARTITIONED_TOPIC_PATH_ZNODE, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
SchemasResource() |
SchemasResource(Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSchema(String tenant,
String namespace,
String topic,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
getAllSchemas(String tenant,
String namespace,
String topic,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
getSchema(String tenant,
String namespace,
String topic,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
getSchema(String tenant,
String namespace,
String topic,
String version,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
getVersionBySchema(String tenant,
String namespace,
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
postSchema(String tenant,
String namespace,
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
void |
testCompatibility(String tenant,
String namespace,
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
boolean authoritative,
javax.ws.rs.container.AsyncResponse response) |
checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersCache, clustersListCache, dispatchRate, domain, failureDomainCache, failureDomainListCache, fetchPartitionedTopicMetadata, fetchPartitionedTopicMetadataCheckAllowAutoCreation, getListOfNamespaces, getNamespacePolicies, getNamespacePolicies, getNamespacePoliciesAsync, getNamespaceReplicatedClusters, getPartitionedTopicList, getPartitionedTopicMetadata, getPartitionedTopicMetadataAsync, getTopicPolicies, globalZk, globalZkCache, internalCreatePartitionedTopic, isLeaderBroker, isNamespaceReplicated, jsonMapper, localCacheService, localPoliciesCache, localZk, localZkCache, managedLedgerListCache, mergeNamespaceWithDefaults, namespaceBacklogQuota, namespaceIsolationPoliciesCache, policiesCache, resumeAsyncResponseExceptionally, setServletContext, subscribeRate, subscriptionDispatchRate, tenantsCache, tryCreatePartitionsAsync, validateAdminAccessForTenant, validateBrokerName, validateBundleOwnership, validateClusterExists, validateGlobalNamespaceOwnership, validateNamespaceName, validateNamespaceName, validateNamespaceOwnershipWithBundles, validatePartitionedTopicMetadata, validatePartitionedTopicName, validatePersistencePolicies, validatePoliciesReadOnlyAccess, validateSuperUserAccess, validateTopicExistedAndCheckAllowAutoCreation, validateTopicName, validateTopicName, zkCreate, zkCreateOptimistic, zkCreateOptimisticAsync, zkPathExists, zkSynccheckAuthorization, checkConnect, checkLocalOrGetPeerReplicationCluster, clientAppId, clientAuthData, config, getClusterDataIfDifferentCluster, hasSuperUserAccess, isBundleOwnedByAnyBroker, isClientAuthenticated, isLeaderBroker, isRequestHttps, joinPath, originalPrincipal, path, pulsar, setPulsar, splitPath, validateAdminAccessForTenant, validateBundleOwnership, validateClusterForTenant, validateClusterOwnership, validateGlobalNamespaceOwnership, validateNamespaceBundleOwnership, validateNamespaceBundleRange, validateNamespaceOperation, validateNamespacePolicyOperation, validateTenantOperation, validateTopicOwnershippublic SchemasResource()
public SchemasResource(Clock clock)
@GET
@Path(value="/{tenant}/{namespace}/{topic}/schema")
@Produces(value="application/json")
public void getSchema(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@GET
@Path(value="/{tenant}/{namespace}/{topic}/schema/{version}")
@Produces(value="application/json")
public void getSchema(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
@PathParam(value="version") @Encoded
String version,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@GET
@Path(value="/{tenant}/{namespace}/{topic}/schemas")
@Produces(value="application/json")
public void getAllSchemas(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@DELETE
@Path(value="/{tenant}/{namespace}/{topic}/schema")
@Produces(value="application/json")
public void deleteSchema(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@POST
@Path(value="/{tenant}/{namespace}/{topic}/schema")
@Produces(value="application/json")
@Consumes(value="application/json")
public void postSchema(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@POST
@Path(value="/{tenant}/{namespace}/{topic}/compatibility")
@Produces(value="application/json")
@Consumes(value="application/json")
public void testCompatibility(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
@POST
@Path(value="/{tenant}/{namespace}/{topic}/version")
@Produces(value="application/json")
@Consumes(value="application/json")
public void getVersionBySchema(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="topic")
String topic,
org.apache.pulsar.common.protocol.schema.PostSchemaPayload payload,
@QueryParam(value="authoritative") @DefaultValue(value="false")
boolean authoritative,
@Suspended
javax.ws.rs.container.AsyncResponse response)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.