Interface Sources<W extends WorkerService>

All Superinterfaces:
Component<W>
All Known Implementing Classes:
SourcesImpl

public interface Sources<W extends WorkerService> extends Component<W>
The service to manage sources.
  • 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, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
      Update a function.
      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

      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, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams, org.apache.pulsar.common.functions.UpdateOptionsImpl updateOptions)
      Update a function.
      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

      org.apache.pulsar.common.policies.data.SourceStatus getSourceStatus(String tenant, String namespace, String componentName, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
    • getSourceInstanceStatus

      org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus(String tenant, String namespace, String sourceName, String instanceId, URI uri, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
    • getSourceInfo

      org.apache.pulsar.common.io.SourceConfig getSourceInfo(String tenant, String namespace, String componentName, org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
    • getSourceList

      List<org.apache.pulsar.common.io.ConnectorDefinition> getSourceList()
    • getSourceConfigDefinition

      List<org.apache.pulsar.common.io.ConfigFieldDefinition> getSourceConfigDefinition(String name)