Class SourcesBase
java.lang.Object
org.apache.pulsar.broker.web.PulsarWebResource
org.apache.pulsar.broker.admin.AdminResource
org.apache.pulsar.broker.admin.impl.SourcesBase
-
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 TypeMethodDescriptionvoidderegisterSource(String tenant, String namespace, String sourceName) List<org.apache.pulsar.common.io.ConfigFieldDefinition>org.apache.pulsar.common.io.SourceConfiggetSourceInfo(String tenant, String namespace, String sourceName) org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusDatagetSourceInstanceStatus(String tenant, String namespace, String sourceName, String instanceId) List<org.apache.pulsar.common.io.ConnectorDefinition>org.apache.pulsar.common.policies.data.SourceStatusgetSourceStatus(String tenant, String namespace, String sourceName) listSources(String tenant, String namespace) voidregisterSource(String tenant, String namespace, String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig) voidvoidrestartSource(String tenant, String namespace, String sourceName) voidrestartSource(String tenant, String namespace, String sourceName, String instanceId) voidstartSource(String tenant, String namespace, String sourceName) voidstartSource(String tenant, String namespace, String sourceName, String instanceId) voidstopSource(String tenant, String namespace, String sourceName) voidstopSource(String tenant, String namespace, String sourceName, String instanceId) voidupdateSource(String tenant, String namespace, String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Methods inherited from class org.apache.pulsar.broker.admin.AdminResource
bookKeeper, checkArgument, checkBacklogQuota, checkNotNull, checkNotNull, checkTopicExistsAsync, checkTopicLevelPolicyEnable, clusters, clustersAsync, dispatchRate, domain, 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
-
SourcesBase
public SourcesBase()
-
-
Method Details
-
registerSource
@POST @Path("/{tenant}/{namespace}/{sourceName}") @Consumes("multipart/form-data") public void registerSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig) -
updateSource
@PUT @Path("/{tenant}/{namespace}/{sourceName}") @Consumes("multipart/form-data") public void updateSource(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, InputStream uploadedInputStream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail, String sourcePkgUrl, org.apache.pulsar.common.io.SourceConfig sourceConfig, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) -
deregisterSource
-
getSourceInfo
@GET @Path("/{tenant}/{namespace}/{sourceName}") public org.apache.pulsar.common.io.SourceConfig getSourceInfo(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName) throws IOException - Throws:
IOException
-
getSourceInstanceStatus
@GET @Produces("application/json") @Path("/{tenant}/{namespace}/{sourceName}/{instanceId}/status") public org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName, @PathParam("instanceId") String instanceId) throws IOException - Throws:
IOException
-
getSourceStatus
@GET @Produces("application/json") @Path("/{tenant}/{namespace}/{sourceName}/status") public org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(@PathParam("tenant") String tenant, @PathParam("namespace") String namespace, @PathParam("sourceName") String sourceName) throws IOException - Throws:
IOException
-
listSources
-
restartSource
-
restartSource
-
stopSource
-
stopSource
-
startSource
-
startSource
-
getSourceList
@GET @Produces("application/json") @Path("/builtinsources") public List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList() -
getSourceConfigDefinition
@GET @Produces("application/json") @Path("/builtinsources/{name}/configdefinition") public List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(@PathParam("name") String name) throws IOException - Throws:
IOException
-
reloadSources
@POST @Path("/reloadBuiltInSources") public void reloadSources()
-