public interface Sources
| Modifier and Type | Method and Description |
|---|---|
void |
createSource(SourceConfig sourceConfig,
String fileName)
Create a new source.
|
CompletableFuture<Void> |
createSourceAsync(SourceConfig sourceConfig,
String fileName)
Create a new source asynchronously.
|
void |
createSourceWithUrl(SourceConfig sourceConfig,
String pkgUrl)
Create a new source with package url.
|
CompletableFuture<Void> |
createSourceWithUrlAsync(SourceConfig sourceConfig,
String pkgUrl)
Create a new source with package url asynchronously.
|
void |
deleteSource(String tenant,
String namespace,
String source)
Delete an existing source.
|
CompletableFuture<Void> |
deleteSourceAsync(String tenant,
String namespace,
String source)
Delete an existing source asynchronously.
|
List<ConnectorDefinition> |
getBuiltInSources()
Fetches a list of supported Pulsar IO sources currently running in cluster mode.
|
CompletableFuture<List<ConnectorDefinition>> |
getBuiltInSourcesAsync()
Fetches a list of supported Pulsar IO sources currently running in cluster mode asynchronously.
|
SourceConfig |
getSource(String tenant,
String namespace,
String source)
Get the configuration for the specified source.
|
CompletableFuture<SourceConfig> |
getSourceAsync(String tenant,
String namespace,
String source)
Get the configuration for the specified source asynchronously.
|
SourceStatus |
getSourceStatus(String tenant,
String namespace,
String source)
Gets the current status of a source.
|
SourceStatus.SourceInstanceStatus.SourceInstanceStatusData |
getSourceStatus(String tenant,
String namespace,
String source,
int id)
Gets the current status of a source instance.
|
CompletableFuture<SourceStatus> |
getSourceStatusAsync(String tenant,
String namespace,
String source)
Gets the current status of a source asynchronously.
|
CompletableFuture<SourceStatus.SourceInstanceStatus.SourceInstanceStatusData> |
getSourceStatusAsync(String tenant,
String namespace,
String source,
int id)
Gets the current status of a source instance asynchronously.
|
List<String> |
listSources(String tenant,
String namespace)
Get the list of sources.
|
CompletableFuture<List<String>> |
listSourcesAsync(String tenant,
String namespace)
Get the list of sources asynchronously.
|
void |
reloadBuiltInSources()
Reload the available built-in connectors, include Source and Source.
|
CompletableFuture<Void> |
reloadBuiltInSourcesAsync()
Reload the available built-in connectors, include Source and Source asynchronously.
|
void |
restartSource(String tenant,
String namespace,
String source)
Restart all source instances.
|
void |
restartSource(String tenant,
String namespace,
String source,
int instanceId)
Restart source instance.
|
CompletableFuture<Void> |
restartSourceAsync(String tenant,
String namespace,
String source)
Restart all source instances asynchronously.
|
CompletableFuture<Void> |
restartSourceAsync(String tenant,
String namespace,
String source,
int instanceId)
Restart source instance asynchronously.
|
void |
startSource(String tenant,
String namespace,
String source)
Start all source instances.
|
void |
startSource(String tenant,
String namespace,
String source,
int instanceId)
Start source instance.
|
CompletableFuture<Void> |
startSourceAsync(String tenant,
String namespace,
String source)
Start all source instances asynchronously.
|
CompletableFuture<Void> |
startSourceAsync(String tenant,
String namespace,
String source,
int instanceId)
Start source instance asynchronously.
|
void |
stopSource(String tenant,
String namespace,
String source)
Stop all source instances.
|
void |
stopSource(String tenant,
String namespace,
String source,
int instanceId)
Stop source instance.
|
CompletableFuture<Void> |
stopSourceAsync(String tenant,
String namespace,
String source)
Stop all source instances asynchronously.
|
CompletableFuture<Void> |
stopSourceAsync(String tenant,
String namespace,
String source,
int instanceId)
Stop source instance asynchronously.
|
void |
updateSource(SourceConfig sourceConfig,
String fileName)
Update the configuration for a source.
|
void |
updateSource(SourceConfig sourceConfig,
String fileName,
UpdateOptions updateOptions)
Update the configuration for a source.
|
CompletableFuture<Void> |
updateSourceAsync(SourceConfig sourceConfig,
String fileName)
Update the configuration for a source asynchronously.
|
CompletableFuture<Void> |
updateSourceAsync(SourceConfig sourceConfig,
String fileName,
UpdateOptions updateOptions)
Update the configuration for a source asynchronously.
|
void |
updateSourceWithUrl(SourceConfig sourceConfig,
String pkgUrl)
Update the configuration for a source.
|
void |
updateSourceWithUrl(SourceConfig sourceConfig,
String pkgUrl,
UpdateOptions updateOptions)
Update the configuration for a source.
|
CompletableFuture<Void> |
updateSourceWithUrlAsync(SourceConfig sourceConfig,
String pkgUrl)
Update the configuration for a source asynchronously.
|
CompletableFuture<Void> |
updateSourceWithUrlAsync(SourceConfig sourceConfig,
String pkgUrl,
UpdateOptions updateOptions)
Update the configuration for a source asynchronously.
|
List<String> listSources(String tenant, String namespace) throws PulsarAdminException
["f1", "f2", "f3"]
PulsarAdminException.NotAuthorizedException - Don't have admin permissionPulsarAdminException - Unexpected errorCompletableFuture<List<String>> listSourcesAsync(String tenant, String namespace)
["f1", "f2", "f3"]
SourceConfig getSource(String tenant, String namespace, String source) throws PulsarAdminException
{ serviceUrl : "http://my-broker.example.com:8080/" }
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException.NotAuthorizedException - You don't have admin permission to get the configuration of the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<SourceConfig> getSourceAsync(String tenant, String namespace, String source)
{ serviceUrl : "http://my-broker.example.com:8080/" }
tenant - Tenant namenamespace - Namespace namesource - Source namevoid createSource(SourceConfig sourceConfig, String fileName) throws PulsarAdminException
sourceConfig - the source configuration objectPulsarAdminException - Unexpected errorCompletableFuture<Void> createSourceAsync(SourceConfig sourceConfig, String fileName)
sourceConfig - the source configuration objectvoid createSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) throws PulsarAdminException
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedPulsarAdminExceptionCompletableFuture<Void> createSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl)
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedvoid updateSource(SourceConfig sourceConfig, String fileName) throws PulsarAdminException
sourceConfig - the source configuration objectPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateSourceAsync(SourceConfig sourceConfig, String fileName)
sourceConfig - the source configuration objectvoid updateSource(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions) throws PulsarAdminException
sourceConfig - the source configuration objectupdateOptions - options for the update operationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateSourceAsync(SourceConfig sourceConfig, String fileName, UpdateOptions updateOptions)
sourceConfig - the source configuration objectupdateOptions - options for the update operationsvoid updateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl) throws PulsarAdminException
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl)
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedvoid updateSourceWithUrl(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions) throws PulsarAdminException
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedupdateOptions - options for the update operationsPulsarAdminException.NotAuthorizedException - You don't have admin permission to create the clusterPulsarAdminException.NotFoundException - Cluster doesn't existPulsarAdminException - Unexpected errorCompletableFuture<Void> updateSourceWithUrlAsync(SourceConfig sourceConfig, String pkgUrl, UpdateOptions updateOptions)
sourceConfig - the source configuration objectpkgUrl - url from which pkg can be downloadedupdateOptions - options for the update operationsvoid deleteSource(String tenant, String namespace, String source) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException.NotAuthorizedException - You don't have admin permissionPulsarAdminException.NotFoundException - Cluster does not existPulsarAdminException.PreconditionFailedException - Cluster is not emptyPulsarAdminException - Unexpected errorCompletableFuture<Void> deleteSourceAsync(String tenant, String namespace, String source)
tenant - Tenant namenamespace - Namespace namesource - Source nameSourceStatus getSourceStatus(String tenant, String namespace, String source) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException - Unexpected errorCompletableFuture<SourceStatus> getSourceStatusAsync(String tenant, String namespace, String source)
tenant - Tenant namenamespace - Namespace namesource - Source nameSourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceStatus(String tenant, String namespace, String source, int id) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source nameid - Source instance-idPulsarAdminExceptionCompletableFuture<SourceStatus.SourceInstanceStatus.SourceInstanceStatusData> getSourceStatusAsync(String tenant, String namespace, String source, int id)
tenant - Tenant namenamespace - Namespace namesource - Source nameid - Source instance-idvoid restartSource(String tenant, String namespace, String source, int instanceId) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdPulsarAdminException - Unexpected errorCompletableFuture<Void> restartSourceAsync(String tenant, String namespace, String source, int instanceId)
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdvoid restartSource(String tenant, String namespace, String source) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException - Unexpected errorCompletableFuture<Void> restartSourceAsync(String tenant, String namespace, String source)
tenant - Tenant namenamespace - Namespace namesource - Source namevoid stopSource(String tenant, String namespace, String source, int instanceId) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdPulsarAdminException - Unexpected errorCompletableFuture<Void> stopSourceAsync(String tenant, String namespace, String source, int instanceId)
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdvoid stopSource(String tenant, String namespace, String source) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException - Unexpected errorCompletableFuture<Void> stopSourceAsync(String tenant, String namespace, String source)
tenant - Tenant namenamespace - Namespace namesource - Source namevoid startSource(String tenant, String namespace, String source, int instanceId) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdPulsarAdminException - Unexpected errorCompletableFuture<Void> startSourceAsync(String tenant, String namespace, String source, int instanceId)
tenant - Tenant namenamespace - Namespace namesource - Source nameinstanceId - Source instanceIdvoid startSource(String tenant, String namespace, String source) throws PulsarAdminException
tenant - Tenant namenamespace - Namespace namesource - Source namePulsarAdminException - Unexpected errorCompletableFuture<Void> startSourceAsync(String tenant, String namespace, String source)
tenant - Tenant namenamespace - Namespace namesource - Source nameList<ConnectorDefinition> getBuiltInSources() throws PulsarAdminException
PulsarAdminException - Unexpected errorCompletableFuture<List<ConnectorDefinition>> getBuiltInSourcesAsync()
void reloadBuiltInSources()
throws PulsarAdminException
PulsarAdminException - Unexpected errorCompletableFuture<Void> reloadBuiltInSourcesAsync()
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.