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>

public class SourcesImpl extends ComponentImpl implements Sources<PulsarWorkerService>
  • Constructor Details

  • 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: Sources
      Update a function.
      Specified by:
      registerSource in interface Sources<PulsarWorkerService>
      Parameters:
      tenant - The tenant of a Pulsar Source
      namespace - The namespace of a Pulsar Source
      sourceName - The name of a Pulsar Source
      uploadedInputStream - Input stream of bytes
      fileDetail - A form-data content disposition header
      sourcePkgUrl - URL path of the Pulsar Source package
      sourceConfig - Configuration of Pulsar Source
      authParams - 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: Sources
      Update a function.
      Specified by:
      updateSource in interface Sources<PulsarWorkerService>
      Parameters:
      tenant - The tenant of a Pulsar Source
      namespace - The namespace of a Pulsar Source
      sourceName - The name of a Pulsar Source
      uploadedInputStream - Input stream of bytes
      fileDetail - A form-data content disposition header
      sourcePkgUrl - URL path of the Pulsar Source package
      sourceConfig - Configuration of Pulsar Source
      authParams - the authentication parameters associated with the request
      updateOptions - 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:
      getSourceStatus in interface Sources<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:
      getSourceInstanceStatus in interface Sources<PulsarWorkerService>
    • getSourceInfo

      public org.apache.pulsar.common.io.SourceConfig getSourceInfo(String tenant, String namespace, String componentName, AuthenticationParameters authParams)
      Specified by:
      getSourceInfo in interface Sources<PulsarWorkerService>
    • getSourceList

      public List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList()
      Specified by:
      getSourceList in interface Sources<PulsarWorkerService>
    • getSourceConfigDefinition

      public List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(String name)
      Specified by:
      getSourceConfigDefinition in interface Sources<PulsarWorkerService>