Interface Sources<W extends WorkerService>
- All Superinterfaces:
Component<W>
- All Known Implementing Classes:
SourcesImpl
The service to manage sources.
-
Method Summary
Modifier and TypeMethodDescriptionList<org.apache.pulsar.common.io.ConfigFieldDefinition>org.apache.pulsar.common.io.SourceConfiggetSourceInfo(String tenant, String namespace, String componentName) org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusDatagetSourceInstanceStatus(String tenant, String namespace, String sourceName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) List<org.apache.pulsar.common.io.ConnectorDefinition>org.apache.pulsar.common.policies.data.SourceStatusgetSourceStatus(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) default 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, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps) Deprecated.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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) Update a function.default 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, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Deprecated.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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.Methods inherited from interface org.apache.pulsar.functions.worker.service.api.Component
deregisterFunction, deregisterFunction, downloadFunction, downloadFunction, downloadFunction, downloadFunction, downloadFunction, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, worker
-
Method Details
-
registerSource
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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) Update a function.- Parameters:
tenant- The tenant of a Pulsar Sourcenamespace- The namespace of a Pulsar SourcesourceName- The name of a Pulsar SourceuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headersourcePkgUrl- URL path of the Pulsar Source packagesourceConfig- Configuration of Pulsar SourceclientRole- Client role for running the Pulsar SourceclientAuthenticationDataHttps- Authentication status of the http client
-
registerSource
@Deprecated default 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, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps) Deprecated.This method uses an incorrect signature 'AuthenticationDataHttps' that prevents the extension of auth status, so it is marked as deprecated and kept here only for backward compatibility. Please use the method that accepts the signature of the AuthenticationDataSource. -
updateSource
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, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.- Parameters:
tenant- The tenant of a Pulsar Sourcenamespace- The namespace of a Pulsar SourcesourceName- The name of a Pulsar SourceuploadedInputStream- Input stream of bytesfileDetail- A form-data content disposition headersourcePkgUrl- URL path of the Pulsar Source packagesourceConfig- Configuration of Pulsar SourceclientRole- Client role for running the Pulsar SourceclientAuthenticationDataHttps- Authentication status of the http clientupdateOptions- Options while updating the source
-
updateSource
@Deprecated default 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, String clientRole, AuthenticationDataHttps clientAuthenticationDataHttps, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Deprecated.This method uses an incorrect signature 'AuthenticationDataHttps' that prevents the extension of auth status, so it is marked as deprecated and kept here only for backward compatibility. Please use the method that accepts the signature of the AuthenticationDataSource. -
getSourceStatus
-
getSourceInstanceStatus
-
getSourceInfo
-
getSourceList
List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList() -
getSourceConfigDefinition
-