public interface SchedulerOperations
Modifier and Type | Method and Description |
---|---|
ScheduleInfoResource |
getSchedule(String scheduleName)
Retrieves the
ScheduleInfo for the specified ScheduleName. |
org.springframework.hateoas.PagedModel<ScheduleInfoResource> |
list()
List all of the schedules registered with the system.
|
org.springframework.hateoas.PagedModel<ScheduleInfoResource> |
list(String taskDefinitionName)
List all of the Schedules associated with the provided TaskDefinition.
|
void |
schedule(String scheduleName,
String taskDefinitionName,
Map<String,String> taskProperties,
List<String> commandLineArgs)
Schedules the task specified with the taskDefinitionName with the
platform specific scheduler.
|
void |
unschedule(String scheduleName)
Unschedule a schedule that has been created.
|
void schedule(String scheduleName, String taskDefinitionName, Map<String,String> taskProperties, List<String> commandLineArgs)
scheduleName
- A name to be associated with the schedule.taskDefinitionName
- the name of the
TaskDefinition
to be scheduled.taskProperties
- properties required for scheduling or launching a task.commandLineArgs
- the command line args to be used when launching the task.void unschedule(String scheduleName)
scheduleName
- the name of the schedule to be removed.org.springframework.hateoas.PagedModel<ScheduleInfoResource> list(String taskDefinitionName)
taskDefinitionName
- to retrieve Schedules for a specified taskDefinitionName.org.springframework.hateoas.PagedModel<ScheduleInfoResource> list()
ScheduleInfoResource getSchedule(String scheduleName)
ScheduleInfo
for the specified ScheduleName.scheduleName
- the name of schedule to retrieve.ScheduleInfo
for the scheduleName passed in.Copyright © 2020 Pivotal Software, Inc.. All rights reserved.