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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancel(CancelCommand cancelCommand)
Cancel a command.CommandStatusResponse
commandStatus(CommandStatusRequest commandStatusRequest)
Get command info.ContextStatusResponse
contextStatus(ContextStatusRequest contextStatusRequest)
Get status.Created
create(CreateContext createContext)
Create an execution context.void
destroy(DestroyContext destroyContext)
Delete an execution context.Created
execute(Command command)
Run a command.
-
-
-
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__.
-
contextStatus
ContextStatusResponse contextStatus(ContextStatusRequest contextStatusRequest)
Get status.Gets the status for an execution context.
-
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.
-
-