public class SourcesBase extends AdminResource implements Supplier<WorkerService>
namespaceName, PARTITIONED_TOPIC_PATH_ZNODE, topicNamehttpRequest, NOT_IMPLEMENTED, servletContext, uri| Constructor and Description |
|---|
SourcesBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterSource(String tenant,
String namespace,
String sourceName) |
WorkerService |
get() |
List<org.apache.pulsar.common.io.ConfigFieldDefinition> |
getSourceConfigDefinition(String name) |
org.apache.pulsar.common.io.SourceConfig |
getSourceInfo(String tenant,
String namespace,
String sourceName) |
org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData |
getSourceInstanceStatus(String tenant,
String namespace,
String sourceName,
String instanceId) |
List<org.apache.pulsar.common.io.ConnectorDefinition> |
getSourceList() |
org.apache.pulsar.common.policies.data.SourceStatus |
getSourceStatus(String tenant,
String namespace,
String sourceName) |
List<String> |
listSources(String tenant,
String namespace) |
void |
registerSource(String tenant,
String namespace,
String sourceName,
InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String sourcePkgUrl,
org.apache.pulsar.common.io.SourceConfig sourceConfig) |
void |
reloadSources() |
void |
restartSource(String tenant,
String namespace,
String sourceName) |
void |
restartSource(String tenant,
String namespace,
String sourceName,
String instanceId) |
void |
startSource(String tenant,
String namespace,
String sourceName) |
void |
startSource(String tenant,
String namespace,
String sourceName,
String instanceId) |
void |
stopSource(String tenant,
String namespace,
String sourceName) |
void |
stopSource(String tenant,
String namespace,
String sourceName,
String instanceId) |
void |
updateSource(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.UpdateOptions updateOptions) |
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 WorkerService get()
get in interface Supplier<WorkerService>@POST
@Path(value="/{tenant}/{namespace}/{sourceName}")
@Consumes(value="multipart/form-data")
public void registerSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName,
InputStream uploadedInputStream,
org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
String sourcePkgUrl,
org.apache.pulsar.common.io.SourceConfig sourceConfig)
@PUT
@Path(value="/{tenant}/{namespace}/{sourceName}")
@Consumes(value="multipart/form-data")
public void updateSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="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.UpdateOptions updateOptions)
@DELETE
@Path(value="/{tenant}/{namespace}/{sourceName}")
public void deregisterSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
@GET
@Path(value="/{tenant}/{namespace}/{sourceName}")
public org.apache.pulsar.common.io.SourceConfig getSourceInfo(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
throws IOException
IOException@GET
@Produces(value="application/json")
@Path(value="/{tenant}/{namespace}/{sourceName}/{instanceId}/status")
public org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName,
@PathParam(value="instanceId")
String instanceId)
throws IOException
IOException@GET
@Produces(value="application/json")
@Path(value="/{tenant}/{namespace}/{sourceName}/status")
public org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
throws IOException
IOException@GET
@Consumes(value="application/json")
@Path(value="/{tenant}/{namespace}")
public List<String> listSources(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/{instanceId}/restart")
@Consumes(value="application/json")
public void restartSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName,
@PathParam(value="instanceId")
String instanceId)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/restart")
@Consumes(value="application/json")
public void restartSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/{instanceId}/stop")
@Consumes(value="application/json")
public void stopSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName,
@PathParam(value="instanceId")
String instanceId)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/stop")
@Consumes(value="application/json")
public void stopSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/{instanceId}/start")
@Consumes(value="application/json")
public void startSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName,
@PathParam(value="instanceId")
String instanceId)
@POST
@Path(value="/{tenant}/{namespace}/{sourceName}/start")
@Consumes(value="application/json")
public void startSource(@PathParam(value="tenant")
String tenant,
@PathParam(value="namespace")
String namespace,
@PathParam(value="sourceName")
String sourceName)
@GET @Produces(value="application/json") @Path(value="/builtinsources") public List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList()
@GET
@Produces(value="application/json")
@Path(value="/builtinsources/{name}/configdefinition")
public List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(@PathParam(value="name")
String name)
throws IOException
IOException@POST @Path(value="/reloadBuiltInSources") public void reloadSources()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.