Class TaskCommands
java.lang.Object
org.springframework.cloud.dataflow.shell.command.TaskCommands
Task commands.
- Author:
- Glenn Renfro, Michael Minella, Gunnar Hillert, Ilayaperumal Gopinathan, Janne Valkealahti, David Turanski, Mike Baranski, Chris Bono, Corneil du Plessis
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondestroyAll
(boolean force) display
(long id) executionListByName
(String name) list()
retrieveTaskExecutionLog
(Long id, String externalExecutionId, String platform)
-
Field Details
-
userInput
-
-
Constructor Details
-
TaskCommands
public TaskCommands()
-
-
Method Details
-
availableWithViewRole
-
availableWithCreateRole
-
availableWithDeployRole
-
availableWithUnDeployRole
-
availableWithDestroyRole
-
list
@ShellMethod(key="task list", value="List created tasks") @ShellMethodAvailability("availableWithViewRole") public Table list() -
listPlatforms
@ShellMethod(key="task platform-list", value="List platform accounts for tasks") @ShellMethodAvailability("availableWithViewRole") public Table listPlatforms() -
validate
@ShellMethod(key="task validate", value="Validate apps contained in task definitions") public TablesInfo validate(@ShellOption(value={"","--name"},help="the task definition name") String name) throws OperationNotSupportedException - Throws:
OperationNotSupportedException
-
create
@ShellMethod(key="task create", value="Create a new task definition") @ShellMethodAvailability("availableWithCreateRole") public String create(@ShellOption(value={"","--name"},help="the name to give to the task") String name, @ShellOption(value="--definition",help="a task definition, using the DSL (e.g. \"timestamp --format=YYYY\")") String dsl, @ShellOption(help="a sort description about the task",defaultValue="") String description) -
launch
@ShellMethod(key="task launch", value="Launch a previously created task") @ShellMethodAvailability("availableWithDeployRole") public String launch(@ShellOption(value={"","--name"},help="the name of the task to launch") String name, @ShellOption(help="the properties for this launch",defaultValue="__NULL__") String properties, @ShellOption(value="--propertiesFile",help="the properties for this launch (as a File)",defaultValue="__NULL__") File propertiesFile, @ShellOption(help="the commandline arguments for this launch",defaultValue="__NULL__") String arguments, @ShellOption(value="--platformName",help="the platform name to use for this launch",defaultValue="__NULL__") String platformName) throws IOException - Throws:
IOException
-
stop
@ShellMethod(key="task execution stop", value="Stop executing tasks") @ShellMethodAvailability("availableWithUnDeployRole") public String stop(@ShellOption(value={"","--ids"},help="the task execution id") String ids, @ShellOption(value="--platformName",help="the name of the platform where the task is executing",defaultValue="__NULL__") String platform) -
retrieveTaskExecutionLog
@ShellMethod(key="task execution log", value="Retrieve task execution log") public String retrieveTaskExecutionLog(@ShellOption(value={"","--id"},help="the task execution id",defaultValue="__NULL__") Long id, @ShellOption(value={"","--externalExecutionId"},help="the task external execution id",defaultValue="__NULL__") String externalExecutionId, @ShellOption(help="the platform of the task execution",defaultValue="__NULL__") String platform) -
destroy
@ShellMethod(key="task destroy", value="Destroy an existing task") @ShellMethodAvailability("availableWithDestroyRole") public String destroy(@ShellOption(value={"","--name"},help="the name of the task to destroy",valueProvider=TaskNameValueProvider.class) String name, @ShellOption(help="the boolean flag to set if task executions and related resources should NOT also be cleaned up",defaultValue="false") boolean cleanup) -
destroyAll
@ShellMethod(key="task all destroy", value="Destroy all existing tasks") @ShellMethodAvailability("availableWithDestroyRole") public String destroyAll(@ShellOption(help="bypass confirmation prompt",defaultValue="false") boolean force) -
executionListByName
@ShellMethod(key="task execution list", value="List created task executions filtered by taskName") @ShellMethodAvailability("availableWithViewRole") public Table executionListByName(@ShellOption(value={"","--name"},help="the task name to be used as a filter",valueProvider=TaskNameValueProvider.class,defaultValue="__NULL__") String name) -
display
@ShellMethod(key="task execution status", value="Display the details of a specific task execution") @ShellMethodAvailability("availableWithViewRole") public Table display(@ShellOption(value={"","--id"},help="the task execution id") long id) -
currentExecutions
@ShellMethod(key="task execution current", value="Display count of currently executin tasks and related information") @ShellMethodAvailability("availableWithViewRole") public Table currentExecutions() -
cleanup
@ShellMethod(key="task execution cleanup", value="Clean up any platform specific resources linked to a task execution") @ShellMethodAvailability("availableWithDestroyRole") public String cleanup(@ShellOption(value={"","--id"},help="the task execution id",defaultValue="__NULL__") Long id, @ShellOption(help="all task execution IDs",defaultValue="false") boolean all, @ShellOption(help="include non-completed task executions",defaultValue="false") boolean includeNonCompleted, @ShellOption(value="--task-name",help="the name of the task to cleanup",defaultValue="__NULL__") String taskName, @ShellOption(help="bypass confirmation prompt",defaultValue="false") boolean force)
-