@Generated public class CommandExecutionAPI extends Object
Constructor and Description |
---|
CommandExecutionAPI(ApiClient apiClient)
Regular-use constructor
|
CommandExecutionAPI(CommandExecutionService mock)
Constructor for mocks
|
public CommandExecutionAPI(ApiClient apiClient)
public CommandExecutionAPI(CommandExecutionService mock)
public CommandStatusResponse waitCommandStatusCommandExecutionCancelled(String clusterId, String commandId, String contextId) throws TimeoutException
TimeoutException
public CommandStatusResponse waitCommandStatusCommandExecutionCancelled(String clusterId, String commandId, String contextId, Duration timeout, Consumer<CommandStatusResponse> callback) throws TimeoutException
TimeoutException
public CommandStatusResponse waitCommandStatusCommandExecutionFinishedOrError(String clusterId, String commandId, String contextId) throws TimeoutException
TimeoutException
public CommandStatusResponse waitCommandStatusCommandExecutionFinishedOrError(String clusterId, String commandId, String contextId, Duration timeout, Consumer<CommandStatusResponse> callback) throws TimeoutException
TimeoutException
public ContextStatusResponse waitContextStatusCommandExecutionRunning(String clusterId, String contextId) throws TimeoutException
TimeoutException
public ContextStatusResponse waitContextStatusCommandExecutionRunning(String clusterId, String contextId, Duration timeout, Consumer<ContextStatusResponse> callback) throws TimeoutException
TimeoutException
public Wait<CommandStatusResponse,Void> cancel(CancelCommand request)
Cancels a currently running command within an execution context.
The command ID is obtained from a prior successful call to __execute__.
public CommandStatusResponse commandStatus(String clusterId, String contextId, String commandId)
public CommandStatusResponse commandStatus(CommandStatusRequest request)
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__.
public ContextStatusResponse contextStatus(String clusterId, String contextId)
public ContextStatusResponse contextStatus(ContextStatusRequest request)
Gets the status for an execution context.
public Wait<ContextStatusResponse,Created> create(CreateContext request)
Creates an execution context for running cluster commands.
If successful, this method returns the ID of the new execution context.
public void destroy(DestroyContext request)
Deletes an execution context.
public Wait<CommandStatusResponse,Created> execute(Command request)
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.
public CommandExecutionService impl()
Copyright © 2024. All rights reserved.