Class SourcesImpl
java.lang.Object
org.apache.pulsar.functions.worker.rest.api.ComponentImpl
org.apache.pulsar.functions.worker.rest.api.SourcesImpl
- All Implemented Interfaces:
Component<PulsarWorkerService>,Sources<PulsarWorkerService>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
ComponentImpl.GetStatus<X,T> -
Field Summary
Fields inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
componentType, workerServiceSupplier -
Constructor Summary
Constructors -
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) 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.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 class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
allowFunctionOps, changeFunctionInstanceStatus, changeFunctionStatusAllInstances, componentInstanceStatusRequestValidate, componentStatusRequestValidate, createPackagePath, deregisterFunction, downloadFunction, downloadFunction, downloadPackageFile, getBuiltinFunctionClassLoader, getClassLoaderFromPackage, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, getPackageFile, getPackageFile, isAuthorizedRole, isSuperUser, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, validateGetFunctionInstanceRequestParams, validateGetFunctionRequestParams, workerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, workerMethods inherited from interface org.apache.pulsar.functions.worker.service.api.Sources
registerSource, updateSource
-
Constructor Details
-
SourcesImpl
-
-
Method Details
-
registerSource
public 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) Description copied from interface:SourcesUpdate a function.- Specified by:
registerSourcein interfaceSources<PulsarWorkerService>- 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
-
updateSource
public 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) Description copied from interface:SourcesUpdate a function.- Specified by:
updateSourcein interfaceSources<PulsarWorkerService>- 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
-
getSourceStatus
public org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(String tenant, String namespace, String componentName, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) - Specified by:
getSourceStatusin interfaceSources<PulsarWorkerService>
-
getSourceInstanceStatus
public org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus(String tenant, String namespace, String sourceName, String instanceId, URI uri, String clientRole, AuthenticationDataSource clientAuthenticationDataHttps) - Specified by:
getSourceInstanceStatusin interfaceSources<PulsarWorkerService>
-
getSourceInfo
public org.apache.pulsar.common.io.SourceConfig getSourceInfo(String tenant, String namespace, String componentName) - Specified by:
getSourceInfoin interfaceSources<PulsarWorkerService>
-
getSourceList
- Specified by:
getSourceListin interfaceSources<PulsarWorkerService>
-
getSourceConfigDefinition
public List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(String name) - Specified by:
getSourceConfigDefinitionin interfaceSources<PulsarWorkerService>
-