public class CommandsResourceApi extends Object
Constructor and Description |
---|
CommandsResourceApi() |
CommandsResourceApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
ApiCommand |
abortCommand(BigDecimal commandId)
Abort a running command.
|
com.squareup.okhttp.Call |
abortCommandAsync(BigDecimal commandId,
ApiCallback<ApiCommand> callback)
Abort a running command.
|
com.squareup.okhttp.Call |
abortCommandCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for abortCommand
|
ApiResponse<ApiCommand> |
abortCommandWithHttpInfo(BigDecimal commandId)
Abort a running command.
|
ApiClient |
getApiClient() |
File |
getCommandResultData(BigDecimal commandId)
Download the end result of a command.
|
com.squareup.okhttp.Call |
getCommandResultDataAsync(BigDecimal commandId,
ApiCallback<File> callback)
Download the end result of a command.
|
com.squareup.okhttp.Call |
getCommandResultDataCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCommandResultData
|
ApiResponse<File> |
getCommandResultDataWithHttpInfo(BigDecimal commandId)
Download the end result of a command.
|
ApiCommandWithSteps |
getCommandWithSteps(BigDecimal commandId)
Retrieve detailed information of an asynchronous command including the command steps.
|
com.squareup.okhttp.Call |
getCommandWithStepsAsync(BigDecimal commandId,
ApiCallback<ApiCommandWithSteps> callback)
Retrieve detailed information of an asynchronous command including the command steps.
|
com.squareup.okhttp.Call |
getCommandWithStepsCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getCommandWithSteps
|
ApiResponse<ApiCommandWithSteps> |
getCommandWithStepsWithHttpInfo(BigDecimal commandId)
Retrieve detailed information of an asynchronous command including the command steps.
|
File |
getStandardError(BigDecimal commandId)
Download a zip-compressed archive of standard error outputs for the command's one-off processes.
|
com.squareup.okhttp.Call |
getStandardErrorAsync(BigDecimal commandId,
ApiCallback<File> callback)
Download a zip-compressed archive of standard error outputs for the command's one-off processes.
|
com.squareup.okhttp.Call |
getStandardErrorCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getStandardError
|
ApiResponse<File> |
getStandardErrorWithHttpInfo(BigDecimal commandId)
Download a zip-compressed archive of standard error outputs for the command's one-off processes.
|
File |
getStandardOutput(BigDecimal commandId)
Download a zip-compressed archive of standard outputs for the command's one-off processes.
|
com.squareup.okhttp.Call |
getStandardOutputAsync(BigDecimal commandId,
ApiCallback<File> callback)
Download a zip-compressed archive of standard outputs for the command's one-off processes.
|
com.squareup.okhttp.Call |
getStandardOutputCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for getStandardOutput
|
ApiResponse<File> |
getStandardOutputWithHttpInfo(BigDecimal commandId)
Download a zip-compressed archive of standard outputs for the command's one-off processes.
|
ApiCommand |
readCommand(BigDecimal commandId)
Retrieve detailed information on an asynchronous command.
|
com.squareup.okhttp.Call |
readCommandAsync(BigDecimal commandId,
ApiCallback<ApiCommand> callback)
Retrieve detailed information on an asynchronous command.
|
com.squareup.okhttp.Call |
readCommandCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readCommand
|
ApiCommandList |
readCommands(BigDecimal endTime,
BigDecimal limit,
String name,
BigDecimal offset,
BigDecimal startTime,
Boolean success)
Retrieve detailed information on all recent commands.
|
com.squareup.okhttp.Call |
readCommandsAsync(BigDecimal endTime,
BigDecimal limit,
String name,
BigDecimal offset,
BigDecimal startTime,
Boolean success,
ApiCallback<ApiCommandList> callback)
Retrieve detailed information on all recent commands.
|
com.squareup.okhttp.Call |
readCommandsCall(BigDecimal endTime,
BigDecimal limit,
String name,
BigDecimal offset,
BigDecimal startTime,
Boolean success,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for readCommands
|
ApiResponse<ApiCommandList> |
readCommandsWithHttpInfo(BigDecimal endTime,
BigDecimal limit,
String name,
BigDecimal offset,
BigDecimal startTime,
Boolean success)
Retrieve detailed information on all recent commands.
|
ApiResponse<ApiCommand> |
readCommandWithHttpInfo(BigDecimal commandId)
Retrieve detailed information on an asynchronous command.
|
ApiCommand |
retry(BigDecimal commandId)
Try to rerun a command.
|
com.squareup.okhttp.Call |
retryAsync(BigDecimal commandId,
ApiCallback<ApiCommand> callback)
Try to rerun a command.
|
com.squareup.okhttp.Call |
retryCall(BigDecimal commandId,
ProgressResponseBody.ProgressListener progressListener,
ProgressRequestBody.ProgressRequestListener progressRequestListener)
Build call for retry
|
ApiResponse<ApiCommand> |
retryWithHttpInfo(BigDecimal commandId)
Try to rerun a command.
|
void |
setApiClient(ApiClient apiClient) |
public CommandsResourceApi()
public CommandsResourceApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public com.squareup.okhttp.Call abortCommandCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand abortCommand(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> abortCommandWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call abortCommandAsync(BigDecimal commandId, ApiCallback<ApiCommand> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getCommandResultDataCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic File getCommandResultData(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> getCommandResultDataWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCommandResultDataAsync(BigDecimal commandId, ApiCallback<File> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getCommandWithStepsCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommandWithSteps getCommandWithSteps(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommandWithSteps> getCommandWithStepsWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getCommandWithStepsAsync(BigDecimal commandId, ApiCallback<ApiCommandWithSteps> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getStandardErrorCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic File getStandardError(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> getStandardErrorWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getStandardErrorAsync(BigDecimal commandId, ApiCallback<File> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call getStandardOutputCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic File getStandardOutput(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<File> getStandardOutputWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call getStandardOutputAsync(BigDecimal commandId, ApiCallback<File> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readCommandCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- The command id. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand readCommand(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> readCommandWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- The command id. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readCommandAsync(BigDecimal commandId, ApiCallback<ApiCommand> callback) throws ApiException
commandId
- The command id. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call readCommandsCall(BigDecimal endTime, BigDecimal limit, String name, BigDecimal offset, BigDecimal startTime, Boolean success, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
endTime
- timestamp of the command end time (optional, default to -1)limit
- command count to return (from offset) (optional, default to 50)name
- the command name, unique for the command class HdfsCreateSnapshotCommand#COMMAND_NAME (optional)offset
- command position to start (optional, default to 0)startTime
- timestamp of the command start time (optional, default to -1)success
- whether the command was successful, if already finished (optional)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommandList readCommands(BigDecimal endTime, BigDecimal limit, String name, BigDecimal offset, BigDecimal startTime, Boolean success) throws ApiException
endTime
- timestamp of the command end time (optional, default to -1)limit
- command count to return (from offset) (optional, default to 50)name
- the command name, unique for the command class HdfsCreateSnapshotCommand#COMMAND_NAME (optional)offset
- command position to start (optional, default to 0)startTime
- timestamp of the command start time (optional, default to -1)success
- whether the command was successful, if already finished (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommandList> readCommandsWithHttpInfo(BigDecimal endTime, BigDecimal limit, String name, BigDecimal offset, BigDecimal startTime, Boolean success) throws ApiException
endTime
- timestamp of the command end time (optional, default to -1)limit
- command count to return (from offset) (optional, default to 50)name
- the command name, unique for the command class HdfsCreateSnapshotCommand#COMMAND_NAME (optional)offset
- command position to start (optional, default to 0)startTime
- timestamp of the command start time (optional, default to -1)success
- whether the command was successful, if already finished (optional)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call readCommandsAsync(BigDecimal endTime, BigDecimal limit, String name, BigDecimal offset, BigDecimal startTime, Boolean success, ApiCallback<ApiCommandList> callback) throws ApiException
endTime
- timestamp of the command end time (optional, default to -1)limit
- command count to return (from offset) (optional, default to 50)name
- the command name, unique for the command class HdfsCreateSnapshotCommand#COMMAND_NAME (optional)offset
- command position to start (optional, default to 0)startTime
- timestamp of the command start time (optional, default to -1)success
- whether the command was successful, if already finished (optional)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectpublic com.squareup.okhttp.Call retryCall(BigDecimal commandId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
commandId
- ID of the command that needs to be run. (required)progressListener
- Progress listenerprogressRequestListener
- Progress request listenerApiException
- If fail to serialize the request body objectpublic ApiCommand retry(BigDecimal commandId) throws ApiException
commandId
- ID of the command that needs to be run. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic ApiResponse<ApiCommand> retryWithHttpInfo(BigDecimal commandId) throws ApiException
commandId
- ID of the command that needs to be run. (required)ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response bodypublic com.squareup.okhttp.Call retryAsync(BigDecimal commandId, ApiCallback<ApiCommand> callback) throws ApiException
commandId
- ID of the command that needs to be run. (required)callback
- The callback to be executed when the API call finishesApiException
- If fail to process the API call, e.g. serializing the request body objectCopyright © 2022. All rights reserved.