Interface CommandExecutionService


  • @Generated
    public interface CommandExecutionService
    This API allows execution of Python, Scala, SQL, or R commands on running Databricks Clusters.

    This is the high-level interface, that contains generated methods.

    Evolving: this interface is under development. Method signatures may change.

    • Method Detail

      • cancel

        void cancel​(CancelCommand cancelCommand)
        Cancel a command.

        Cancels a currently running command within an execution context.

        The command ID is obtained from a prior successful call to __execute__.

      • commandStatus

        CommandStatusResponse commandStatus​(CommandStatusRequest commandStatusRequest)
        Get command info.

        Gets the status of and, if available, the results from a currently executing command.

        The command ID is obtained from a prior successful call to __execute__.

      • create

        Created create​(CreateContext createContext)
        Create an execution context.

        Creates an execution context for running cluster commands.

        If successful, this method returns the ID of the new execution context.

      • destroy

        void destroy​(DestroyContext destroyContext)
        Delete an execution context.

        Deletes an execution context.

      • execute

        Created execute​(Command command)
        Run a command.

        Runs a cluster command in the given execution context, using the provided language.

        If successful, it returns an ID for tracking the status of the command's execution.