Class TaskSchedulerCommands
java.lang.Object
org.springframework.cloud.dataflow.shell.command.TaskSchedulerCommands
Task Scheduler commands
- Author:
- Daniel Serleg, Chris Bono
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TaskSchedulerCommands
public TaskSchedulerCommands()
-
-
Method Details
-
availableWithCreateRole
-
availableWithListRole
-
availableWithUnscheduleRole
-
create
@ShellMethod(key="task schedule create", value="Create new task schedule") @ShellMethodAvailability("availableWithCreateRole") public String create(@ShellOption(help="the name to give to the schedule") String name, @ShellOption(value="--definitionName",help="a task definition name") String definitionName, @ShellOption(help="the cron expression of the schedule") String expression, @ShellOption(help="a task properties (comma separated string eg.: --properties \'prop.first=prop,prop.sec=prop2\'",defaultValue="__NULL__") String properties, @ShellOption(value="--propertiesFile",help="the properties for this deployment (as a File)",defaultValue="__NULL__") File propertiesFile, @ShellOption(help="command line args (space separated string eg.: --arguments \'a b c d\'",defaultValue="__NULL__") String arguments, @ShellOption(help="the name of the platform from which to create the schedule",defaultValue="__NULL__") String platform) throws IOException - Throws:
IOException
-
listByDefinition
@ShellMethod(key="task schedule list", value="List task schedules by task definition name") @ShellMethodAvailability("availableWithListRole") public Table listByDefinition(@ShellOption(help="the name platform from which to retrieve a list of schedules",defaultValue="__NULL__") String platform, @ShellOption(value="--definitionName",help="the task definition name",defaultValue="__NULL__") String definitionName) -
unschedule
@ShellMethod(key="task schedule destroy", value="Delete task schedule") @ShellMethodAvailability("availableWithUnscheduleRole") public String unschedule(@ShellOption(help="The name of the task schedule") String name, @ShellOption(help="the name platform from which to unschedule",defaultValue="__NULL__") String platform)
-