public interface CommandsResource
Modifier and Type | Method and Description |
---|---|
ApiCommand |
abortCommand(long commandId)
Abort a running command.
|
ApiCommand |
readCommand(long commandId)
Retrieve detailed information on an asynchronous command.
|
@Path(value="/{commandId}") ApiCommand readCommand(long commandId)
Cloudera Manager keeps the results and statuses of asynchronous commands, which have non-negative command IDs. On the other hand, synchronous commands complete immediately, and their results are passed back in the return object of the command execution API call. Outside of that return object, there is no way to check the result of a synchronous command.
commandId
- The command id.@Path(value="/{commandId}/abort") ApiCommand abortCommand(long commandId)
commandId
- The command id.Copyright © Cloudera, Inc. Released under Apache License, Version 2.0.