Class SourcesImpl

    • Constructor Detail

      • SourcesImpl

        public SourcesImpl​(java.util.function.Supplier<PulsarWorkerService> workerServiceSupplier)
    • Method Detail

      • registerSource

        public void registerSource​(java.lang.String tenant,
                                   java.lang.String namespace,
                                   java.lang.String sourceName,
                                   java.io.InputStream uploadedInputStream,
                                   org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
                                   java.lang.String sourcePkgUrl,
                                   org.apache.pulsar.common.io.SourceConfig sourceConfig,
                                   org.apache.pulsar.broker.authentication.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​(java.lang.String tenant,
                                 java.lang.String namespace,
                                 java.lang.String sourceName,
                                 java.io.InputStream uploadedInputStream,
                                 org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail,
                                 java.lang.String sourcePkgUrl,
                                 org.apache.pulsar.common.io.SourceConfig sourceConfig,
                                 org.apache.pulsar.broker.authentication.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​(java.lang.String tenant,
                                                                                   java.lang.String namespace,
                                                                                   java.lang.String componentName,
                                                                                   java.net.URI uri,
                                                                                   org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
        Specified by:
        getSourceStatus in interface Sources<PulsarWorkerService>
      • getSourceInstanceStatus

        public org.apache.pulsar.common.policies.data.SourceStatus.SourceInstanceStatus.SourceInstanceStatusData getSourceInstanceStatus​(java.lang.String tenant,
                                                                                                                                         java.lang.String namespace,
                                                                                                                                         java.lang.String sourceName,
                                                                                                                                         java.lang.String instanceId,
                                                                                                                                         java.net.URI uri,
                                                                                                                                         org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
        Specified by:
        getSourceInstanceStatus in interface Sources<PulsarWorkerService>
      • getSourceInfo

        public org.apache.pulsar.common.io.SourceConfig getSourceInfo​(java.lang.String tenant,
                                                                      java.lang.String namespace,
                                                                      java.lang.String componentName,
                                                                      org.apache.pulsar.broker.authentication.AuthenticationParameters authParams)
        Specified by:
        getSourceInfo in interface Sources<PulsarWorkerService>