Interface Functions


  • public interface Functions
    Admin interface for function management.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      void createFunction​(FunctionConfig functionConfig, java.lang.String fileName)
      Create a new function.
      java.util.concurrent.CompletableFuture<java.lang.Void> createFunctionAsync​(FunctionConfig functionConfig, java.lang.String fileName)
      Create a new function asynchronously.
      void createFunctionWithUrl​(FunctionConfig functionConfig, java.lang.String pkgUrl)
      Create a new function with package url.
      java.util.concurrent.CompletableFuture<java.lang.Void> createFunctionWithUrlAsync​(FunctionConfig functionConfig, java.lang.String pkgUrl)
      Create a new function with package url asynchronously.
      void deleteFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Delete an existing function.
      java.util.concurrent.CompletableFuture<java.lang.Void> deleteFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Delete an existing function asynchronously.
      void downloadFunction​(java.lang.String destinationFile, java.lang.String path)
      Download Function Code.
      void downloadFunction​(java.lang.String destinationFile, java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Download Function Code.
      java.util.concurrent.CompletableFuture<java.lang.Void> downloadFunctionAsync​(java.lang.String destinationFile, java.lang.String path)
      Download Function Code.
      java.util.concurrent.CompletableFuture<java.lang.Void> downloadFunctionAsync​(java.lang.String destinationFile, java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Download Function Code asynchronously.
      java.util.List<ConnectorDefinition> getConnectorsList()
      Deprecated.
      FunctionConfig getFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Get the configuration for the specified function.
      java.util.concurrent.CompletableFuture<FunctionConfig> getFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Get the configuration for the specified function asynchronously.
      java.util.List<java.lang.String> getFunctions​(java.lang.String tenant, java.lang.String namespace)
      Get the list of functions.
      java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getFunctionsAsync​(java.lang.String tenant, java.lang.String namespace)
      Get the list of functions asynchronously.
      FunctionState getFunctionState​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, java.lang.String key)
      Fetch the current state associated with a Pulsar Function.
      java.util.concurrent.CompletableFuture<FunctionState> getFunctionStateAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, java.lang.String key)
      Fetch the current state associated with a Pulsar Function asynchronously.
      FunctionStats getFunctionStats​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Gets the current stats of a function.
      FunctionInstanceStatsData getFunctionStats​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int id)
      Gets the current stats of a function instance.
      java.util.concurrent.CompletableFuture<FunctionStats> getFunctionStatsAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Gets the current stats of a function asynchronously.
      java.util.concurrent.CompletableFuture<FunctionInstanceStatsData> getFunctionStatsAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int id)
      Gets the current stats of a function instance asynchronously.
      FunctionStatus getFunctionStatus​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Gets the current status of a function.
      FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData getFunctionStatus​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int id)
      Gets the current status of a function instance.
      java.util.concurrent.CompletableFuture<FunctionStatus> getFunctionStatusAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Gets the current status of a function asynchronously.
      java.util.concurrent.CompletableFuture<FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData> getFunctionStatusAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int id)
      Gets the current status of a function instance asynchronously.
      java.util.Set<java.lang.String> getSinks()
      Deprecated.
      java.util.Set<java.lang.String> getSources()
      Deprecated.
      void putFunctionState​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, FunctionState state)
      Puts the given state associated with a Pulsar Function.
      java.util.concurrent.CompletableFuture<java.lang.Void> putFunctionStateAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, FunctionState state)
      Puts the given state associated with a Pulsar Function asynchronously.
      void restartFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Restart all function instances.
      void restartFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Restart function instance.
      java.util.concurrent.CompletableFuture<java.lang.Void> restartFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Restart all function instances asynchronously.
      java.util.concurrent.CompletableFuture<java.lang.Void> restartFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Restart function instance asynchronously.
      void startFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Start all function instances.
      void startFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Start function instance.
      java.util.concurrent.CompletableFuture<java.lang.Void> startFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Start all function instances asynchronously.
      java.util.concurrent.CompletableFuture<java.lang.Void> startFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Start function instance asynchronously.
      void stopFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Stop all function instances.
      void stopFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Stop function instance.
      java.util.concurrent.CompletableFuture<java.lang.Void> stopFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function)
      Stop all function instances asynchronously.
      java.util.concurrent.CompletableFuture<java.lang.Void> stopFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, int instanceId)
      Stop function instance asynchronously.
      java.lang.String triggerFunction​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, java.lang.String topic, java.lang.String triggerValue, java.lang.String triggerFile)
      Triggers the function by writing to the input topic.
      java.util.concurrent.CompletableFuture<java.lang.String> triggerFunctionAsync​(java.lang.String tenant, java.lang.String namespace, java.lang.String function, java.lang.String topic, java.lang.String triggerValue, java.lang.String triggerFile)
      Triggers the function by writing to the input topic asynchronously.
      void updateFunction​(FunctionConfig functionConfig, java.lang.String fileName)
      Update the configuration for a function.
      void updateFunction​(FunctionConfig functionConfig, java.lang.String fileName, UpdateOptions updateOptions)
      Update the configuration for a function.
      java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionAsync​(FunctionConfig functionConfig, java.lang.String fileName)
      Update the configuration for a function asynchronously.
      java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionAsync​(FunctionConfig functionConfig, java.lang.String fileName, UpdateOptions updateOptions)
      Update the configuration for a function asynchronously.
      void updateFunctionWithUrl​(FunctionConfig functionConfig, java.lang.String pkgUrl)
      Update the configuration for a function.
      void updateFunctionWithUrl​(FunctionConfig functionConfig, java.lang.String pkgUrl, UpdateOptions updateOptions)
      Update the configuration for a function.
      java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionWithUrlAsync​(FunctionConfig functionConfig, java.lang.String pkgUrl)
      Update the configuration for a function asynchronously.
      java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionWithUrlAsync​(FunctionConfig functionConfig, java.lang.String pkgUrl, UpdateOptions updateOptions)
      Update the configuration for a function asynchronously.
      void uploadFunction​(java.lang.String sourceFile, java.lang.String path)
      Upload Data.
      java.util.concurrent.CompletableFuture<java.lang.Void> uploadFunctionAsync​(java.lang.String sourceFile, java.lang.String path)
      Upload Data asynchronously.
    • Method Detail

      • getFunctionsAsync

        java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getFunctionsAsync​(java.lang.String tenant,
                                                                                                   java.lang.String namespace)
        Get the list of functions asynchronously.

        Get the list of all the Pulsar functions.

        Response Example:

         ["f1", "f2", "f3"]
         
      • getFunctionAsync

        java.util.concurrent.CompletableFuture<FunctionConfig> getFunctionAsync​(java.lang.String tenant,
                                                                                java.lang.String namespace,
                                                                                java.lang.String function)
        Get the configuration for the specified function asynchronously.

        Response Example:

         { serviceUrl : "http://my-broker.example.com:8080/" }
         
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Returns:
        the function configuration
      • createFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> createFunctionAsync​(FunctionConfig functionConfig,
                                                                                   java.lang.String fileName)
        Create a new function asynchronously.
        Parameters:
        functionConfig - the function configuration object
      • createFunctionWithUrl

        void createFunctionWithUrl​(FunctionConfig functionConfig,
                                   java.lang.String pkgUrl)
                            throws PulsarAdminException
        Create a new function with package url.

        Create a new function by providing url from which fun-pkg can be downloaded. supported url: http/file eg: File: file:/dir/fileName.jar Http: http://www.repo.com/fileName.jar

        Parameters:
        functionConfig - the function configuration object
        pkgUrl - url from which pkg can be downloaded
        Throws:
        PulsarAdminException
      • createFunctionWithUrlAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> createFunctionWithUrlAsync​(FunctionConfig functionConfig,
                                                                                          java.lang.String pkgUrl)
        Create a new function with package url asynchronously.

        Create a new function by providing url from which fun-pkg can be downloaded. supported url: http/file eg: File: file:/dir/fileName.jar Http: http://www.repo.com/fileName.jar

        Parameters:
        functionConfig - the function configuration object
        pkgUrl - url from which pkg can be downloaded
      • updateFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionAsync​(FunctionConfig functionConfig,
                                                                                   java.lang.String fileName)
        Update the configuration for a function asynchronously.

        Parameters:
        functionConfig - the function configuration object
      • updateFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionAsync​(FunctionConfig functionConfig,
                                                                                   java.lang.String fileName,
                                                                                   UpdateOptions updateOptions)
        Update the configuration for a function asynchronously.

        Parameters:
        functionConfig - the function configuration object
        updateOptions - options for the update operations
      • updateFunctionWithUrlAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionWithUrlAsync​(FunctionConfig functionConfig,
                                                                                          java.lang.String pkgUrl)
        Update the configuration for a function asynchronously.

        Update a function by providing url from which fun-pkg can be downloaded. supported url: http/file eg: File: file:/dir/fileName.jar Http: http://www.repo.com/fileName.jar

        Parameters:
        functionConfig - the function configuration object
        pkgUrl - url from which pkg can be downloaded
      • updateFunctionWithUrl

        void updateFunctionWithUrl​(FunctionConfig functionConfig,
                                   java.lang.String pkgUrl,
                                   UpdateOptions updateOptions)
                            throws PulsarAdminException
        Update the configuration for a function.

        Update a function by providing url from which fun-pkg can be downloaded. supported url: http/file eg: File: file:/dir/fileName.jar Http: http://www.repo.com/fileName.jar

        Parameters:
        functionConfig - the function configuration object
        pkgUrl - url from which pkg can be downloaded
        updateOptions - options for the update operations
        Throws:
        PulsarAdminException.NotAuthorizedException - You don't have admin permission to create the cluster
        PulsarAdminException.NotFoundException - Cluster doesn't exist
        PulsarAdminException - Unexpected error
      • updateFunctionWithUrlAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> updateFunctionWithUrlAsync​(FunctionConfig functionConfig,
                                                                                          java.lang.String pkgUrl,
                                                                                          UpdateOptions updateOptions)
        Update the configuration for a function asynchronously.

        Update a function by providing url from which fun-pkg can be downloaded. supported url: http/file eg: File: file:/dir/fileName.jar Http: http://www.repo.com/fileName.jar

        Parameters:
        functionConfig - the function configuration object
        pkgUrl - url from which pkg can be downloaded
        updateOptions - options for the update operations
      • deleteFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> deleteFunctionAsync​(java.lang.String tenant,
                                                                                   java.lang.String namespace,
                                                                                   java.lang.String function)
        Delete an existing function asynchronously.

        Delete a function

        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • getFunctionStatus

        FunctionStatus getFunctionStatus​(java.lang.String tenant,
                                         java.lang.String namespace,
                                         java.lang.String function)
                                  throws PulsarAdminException
        Gets the current status of a function.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Throws:
        PulsarAdminException - Unexpected error
      • getFunctionStatusAsync

        java.util.concurrent.CompletableFuture<FunctionStatus> getFunctionStatusAsync​(java.lang.String tenant,
                                                                                      java.lang.String namespace,
                                                                                      java.lang.String function)
        Gets the current status of a function asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • getFunctionStatusAsync

        java.util.concurrent.CompletableFuture<FunctionStatus.FunctionInstanceStatus.FunctionInstanceStatusData> getFunctionStatusAsync​(java.lang.String tenant,
                                                                                                                                        java.lang.String namespace,
                                                                                                                                        java.lang.String function,
                                                                                                                                        int id)
        Gets the current status of a function instance asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        id - Function instance-id
        Returns:
      • getFunctionStats

        FunctionInstanceStatsData getFunctionStats​(java.lang.String tenant,
                                                   java.lang.String namespace,
                                                   java.lang.String function,
                                                   int id)
                                            throws PulsarAdminException
        Gets the current stats of a function instance.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        id - Function instance-id
        Returns:
        Throws:
        PulsarAdminException
      • getFunctionStatsAsync

        java.util.concurrent.CompletableFuture<FunctionInstanceStatsData> getFunctionStatsAsync​(java.lang.String tenant,
                                                                                                java.lang.String namespace,
                                                                                                java.lang.String function,
                                                                                                int id)
        Gets the current stats of a function instance asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        id - Function instance-id
        Returns:
      • getFunctionStats

        FunctionStats getFunctionStats​(java.lang.String tenant,
                                       java.lang.String namespace,
                                       java.lang.String function)
                                throws PulsarAdminException
        Gets the current stats of a function.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Returns:
        Throws:
        PulsarAdminException
      • getFunctionStatsAsync

        java.util.concurrent.CompletableFuture<FunctionStats> getFunctionStatsAsync​(java.lang.String tenant,
                                                                                    java.lang.String namespace,
                                                                                    java.lang.String function)
        Gets the current stats of a function asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Returns:
      • restartFunction

        void restartFunction​(java.lang.String tenant,
                             java.lang.String namespace,
                             java.lang.String function,
                             int instanceId)
                      throws PulsarAdminException
        Restart function instance.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
        Throws:
        PulsarAdminException - Unexpected error
      • restartFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> restartFunctionAsync​(java.lang.String tenant,
                                                                                    java.lang.String namespace,
                                                                                    java.lang.String function,
                                                                                    int instanceId)
        Restart function instance asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
      • restartFunction

        void restartFunction​(java.lang.String tenant,
                             java.lang.String namespace,
                             java.lang.String function)
                      throws PulsarAdminException
        Restart all function instances.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Throws:
        PulsarAdminException - Unexpected error
      • restartFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> restartFunctionAsync​(java.lang.String tenant,
                                                                                    java.lang.String namespace,
                                                                                    java.lang.String function)
        Restart all function instances asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • stopFunction

        void stopFunction​(java.lang.String tenant,
                          java.lang.String namespace,
                          java.lang.String function,
                          int instanceId)
                   throws PulsarAdminException
        Stop function instance.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
        Throws:
        PulsarAdminException - Unexpected error
      • stopFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> stopFunctionAsync​(java.lang.String tenant,
                                                                                 java.lang.String namespace,
                                                                                 java.lang.String function,
                                                                                 int instanceId)
        Stop function instance asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
      • startFunction

        void startFunction​(java.lang.String tenant,
                           java.lang.String namespace,
                           java.lang.String function)
                    throws PulsarAdminException
        Start all function instances.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Throws:
        PulsarAdminException - Unexpected error
      • startFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> startFunctionAsync​(java.lang.String tenant,
                                                                                  java.lang.String namespace,
                                                                                  java.lang.String function)
        Start all function instances asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • startFunction

        void startFunction​(java.lang.String tenant,
                           java.lang.String namespace,
                           java.lang.String function,
                           int instanceId)
                    throws PulsarAdminException
        Start function instance.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
        Throws:
        PulsarAdminException - Unexpected error
      • startFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> startFunctionAsync​(java.lang.String tenant,
                                                                                  java.lang.String namespace,
                                                                                  java.lang.String function,
                                                                                  int instanceId)
        Start function instance asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        instanceId - Function instanceId
      • stopFunction

        void stopFunction​(java.lang.String tenant,
                          java.lang.String namespace,
                          java.lang.String function)
                   throws PulsarAdminException
        Stop all function instances.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Throws:
        PulsarAdminException - Unexpected error
      • stopFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> stopFunctionAsync​(java.lang.String tenant,
                                                                                 java.lang.String namespace,
                                                                                 java.lang.String function)
        Stop all function instances asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • triggerFunction

        java.lang.String triggerFunction​(java.lang.String tenant,
                                         java.lang.String namespace,
                                         java.lang.String function,
                                         java.lang.String topic,
                                         java.lang.String triggerValue,
                                         java.lang.String triggerFile)
                                  throws PulsarAdminException
        Triggers the function by writing to the input topic.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        triggerValue - The input that will be written to input topic
        triggerFile - The file which contains the input that will be written to input topic
        Throws:
        PulsarAdminException - Unexpected error
      • triggerFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.String> triggerFunctionAsync​(java.lang.String tenant,
                                                                                      java.lang.String namespace,
                                                                                      java.lang.String function,
                                                                                      java.lang.String topic,
                                                                                      java.lang.String triggerValue,
                                                                                      java.lang.String triggerFile)
        Triggers the function by writing to the input topic asynchronously.
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        triggerValue - The input that will be written to input topic
        triggerFile - The file which contains the input that will be written to input topic
      • uploadFunction

        void uploadFunction​(java.lang.String sourceFile,
                            java.lang.String path)
                     throws PulsarAdminException
        Upload Data.
        Parameters:
        sourceFile - dataFile that needs to be uploaded
        path - Path where data should be stored
        Throws:
        PulsarAdminException - Unexpected error
      • uploadFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> uploadFunctionAsync​(java.lang.String sourceFile,
                                                                                   java.lang.String path)
        Upload Data asynchronously.
        Parameters:
        sourceFile - dataFile that needs to be uploaded
        path - Path where data should be stored
      • downloadFunction

        void downloadFunction​(java.lang.String destinationFile,
                              java.lang.String path)
                       throws PulsarAdminException
        Download Function Code.
        Parameters:
        destinationFile - file where data should be downloaded to
        path - Path where data is located
        Throws:
        PulsarAdminException - Unexpected error
      • downloadFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> downloadFunctionAsync​(java.lang.String destinationFile,
                                                                                     java.lang.String path)
        Download Function Code.
        Parameters:
        destinationFile - file where data should be downloaded to
        path - Path where data is located
      • downloadFunction

        void downloadFunction​(java.lang.String destinationFile,
                              java.lang.String tenant,
                              java.lang.String namespace,
                              java.lang.String function)
                       throws PulsarAdminException
        Download Function Code.
        Parameters:
        destinationFile - file where data should be downloaded to
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        Throws:
        PulsarAdminException
      • downloadFunctionAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> downloadFunctionAsync​(java.lang.String destinationFile,
                                                                                     java.lang.String tenant,
                                                                                     java.lang.String namespace,
                                                                                     java.lang.String function)
        Download Function Code asynchronously.
        Parameters:
        destinationFile - file where data should be downloaded to
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
      • getConnectorsList

        @Deprecated
        java.util.List<ConnectorDefinition> getConnectorsList()
                                                       throws PulsarAdminException
        Deprecated.
        Deprecated in favor of getting sources and sinks for their own APIs.

        Fetches a list of supported Pulsar IO connectors currently running in cluster mode

        Throws:
        PulsarAdminException - Unexpected error
      • getSources

        @Deprecated
        java.util.Set<java.lang.String> getSources()
                                            throws PulsarAdminException
        Deprecated.
        Deprecated in favor of getting sources and sinks for their own APIs.

        Fetches a list of supported Pulsar IO sources currently running in cluster mode

        Throws:
        PulsarAdminException - Unexpected error
      • getSinks

        @Deprecated
        java.util.Set<java.lang.String> getSinks()
                                          throws PulsarAdminException
        Deprecated.
        Deprecated in favor of getting sources and sinks for their own APIs.

        Fetches a list of supported Pulsar IO sinks currently running in cluster mode

        Throws:
        PulsarAdminException - Unexpected error
      • getFunctionStateAsync

        java.util.concurrent.CompletableFuture<FunctionState> getFunctionStateAsync​(java.lang.String tenant,
                                                                                    java.lang.String namespace,
                                                                                    java.lang.String function,
                                                                                    java.lang.String key)
        Fetch the current state associated with a Pulsar Function asynchronously.

        Response Example:

         { "value : 12, version : 2"}
         
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        key - Key name of State
        Returns:
        the function configuration
      • putFunctionStateAsync

        java.util.concurrent.CompletableFuture<java.lang.Void> putFunctionStateAsync​(java.lang.String tenant,
                                                                                     java.lang.String namespace,
                                                                                     java.lang.String function,
                                                                                     FunctionState state)
        Puts the given state associated with a Pulsar Function asynchronously.

        Response Example:

         { "value : 12, version : 2"}
         
        Parameters:
        tenant - Tenant name
        namespace - Namespace name
        function - Function name
        state - FunctionState