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, AuthenticationParameters authParams) org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusDatagetSourceInstanceStatus(String tenant, String namespace, String sourceName, String instanceId, URI uri, AuthenticationParameters authParams) List<org.apache.pulsar.common.io.ConnectorDefinition>org.apache.pulsar.common.policies.data.SourceStatusgetSourceStatus(String tenant, String namespace, String componentName, URI uri, AuthenticationParameters authParams) 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, AuthenticationParameters authParams) 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, AuthenticationParameters authParams, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions) Update a function.Methods inherited from class org.apache.pulsar.functions.worker.rest.api.ComponentImpl
allowFunctionOps, allowFunctionOps, changeFunctionInstanceStatus, changeFunctionInstanceStatus, changeFunctionStatusAllInstances, changeFunctionStatusAllInstances, componentInstanceStatusRequestValidate, componentInstanceStatusRequestValidate, componentStatusRequestValidate, componentStatusRequestValidate, createPackagePath, deregisterFunction, downloadFunction, downloadFunction, getBuiltinFunctionPackage, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, getPackageFile, getPackageFile, isAuthorizedRole, isAuthorizedRole, isSuperUser, isSuperUser, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, throwRestExceptionIfUnauthorizedForNamespace, 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, downloadFunction, downloadFunction, getFunctionInfo, getFunctionsInstanceStats, getFunctionState, getFunctionStats, getListOfConnectors, listFunctions, putFunctionState, reloadConnectors, restartFunctionInstance, restartFunctionInstances, startFunctionInstance, startFunctionInstances, stopFunctionInstance, stopFunctionInstances, triggerFunction, uploadFunction, worker
-
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, AuthenticationParameters authParams) 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 SourceauthParams- the authentication parameters associated with the request
-
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, AuthenticationParameters authParams, 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 SourceauthParams- the authentication parameters associated with the requestupdateOptions- Options while updating the source
-
getSourceStatus
public org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(String tenant, String namespace, String componentName, URI uri, AuthenticationParameters authParams) - 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, AuthenticationParameters authParams) - Specified by:
getSourceInstanceStatusin interfaceSources<PulsarWorkerService>
-
getSourceInfo
public org.apache.pulsar.common.io.SourceConfig getSourceInfo(String tenant, String namespace, String componentName, AuthenticationParameters authParams) - 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>
-