public interface SchedulerService
Modifier and Type | Method and Description |
---|---|
org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo |
getSchedule(String scheduleName)
Retrieves the
ScheduleInfo for the specified ScheduleName from the default platform. |
org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo |
getSchedule(String scheduleName,
String platformName)
Retrieves the
ScheduleInfo for the specified ScheduleName. |
List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list()
List all of the schedules registered with the default platform up to the
established maximum as specified
SchedulerServiceProperties.maxSchedulesReturned . |
org.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list(org.springframework.data.domain.Pageable pageable)
List all of the schedules registered with the default platform.
|
org.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list(org.springframework.data.domain.Pageable pageable,
String platformName)
List all of the schedules registered with the system.
|
List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list(org.springframework.data.domain.Pageable pageable,
String taskDefinitionName,
String platformName)
List all of the Schedules associated with the provided TaskDefinition.
|
List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list(String taskDefinitionName)
List all of the Schedules associated with the provided TaskDefinition for the default platform up to the
established maximum as specified
SchedulerServiceProperties.maxSchedulesReturned . |
List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
list(String taskDefinitionName,
String platformName)
List all of the Schedules associated with the provided TaskDefinition up to the
established maximum as specified
SchedulerServiceProperties.maxSchedulesReturned . |
List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> |
listForPlatform(String platformName)
List all of the schedules registered with the system up to the
established maximum as specified
SchedulerServiceProperties.maxSchedulesReturned . |
void |
schedule(String scheduleName,
String taskDefinitionName,
Map<String,String> taskProperties,
List<String> commandLineArgs)
Schedules the task specified with the taskDefinitionName with the
default platform specific scheduler.
|
void |
schedule(String scheduleName,
String taskDefinitionName,
Map<String,String> taskProperties,
List<String> commandLineArgs,
String platformName)
Schedules the task specified with the taskDefinitionName with the
platform specific scheduler.
|
void |
unschedule(String scheduleName)
Unschedule a schedule that has been created for the default platform.
|
void |
unschedule(String scheduleName,
String platformName)
Unschedule a schedule that has been created.
|
void |
unscheduleForTaskDefinition(String taskDefinitionName)
Unschedule all schedules that have been created for this task definition name.
|
void schedule(String scheduleName, String taskDefinitionName, Map<String,String> taskProperties, List<String> commandLineArgs, String platformName)
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.platformName
- the name of the platform where the schedule should be 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.void unschedule(String scheduleName, String platformName)
scheduleName
- the name of the schedule to be removed.platformName
- the name of the platform from where the schedule will be destroyed.void unscheduleForTaskDefinition(String taskDefinitionName)
taskDefinitionName
- the name of the task definition.List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list(org.springframework.data.domain.Pageable pageable, String taskDefinitionName, String platformName)
pageable
- Establish the pagination setup for the result set.taskDefinitionName
- to retrieve Schedules for a specified taskDefinitionName.platformName
- name of platform from which the schedules will be retrieved.org.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list(org.springframework.data.domain.Pageable pageable, String platformName)
pageable
- Establish the pagination setup for the result set.platformName
- the name of the platform where schedules will be obtained.org.springframework.data.domain.Page<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list(org.springframework.data.domain.Pageable pageable)
pageable
- Establish the pagination setup for the result set.List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list(String taskDefinitionName, String platformName)
SchedulerServiceProperties.maxSchedulesReturned
.taskDefinitionName
- to retrieve Schedules for a specified taskDefinitionName.platformName
- the name of the platform where schedules will be retrieved.List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list(String taskDefinitionName)
SchedulerServiceProperties.maxSchedulesReturned
.taskDefinitionName
- to retrieve Schedules for a specified taskDefinitionName.List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> listForPlatform(String platformName)
SchedulerServiceProperties.maxSchedulesReturned
.platformName
- the name for the platform where schedules will be retrieved.List<org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo> list()
SchedulerServiceProperties.maxSchedulesReturned
.org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo getSchedule(String scheduleName, String platformName)
ScheduleInfo
for the specified ScheduleName.scheduleName
- the name of schedule to retrieve.platformName
- the name of the platform where this schedule will be obtained.ScheduleInfo
for the scheduleName passed in.org.springframework.cloud.deployer.spi.scheduler.ScheduleInfo getSchedule(String scheduleName)
ScheduleInfo
for the specified ScheduleName from the default platform.scheduleName
- the name of schedule to retrieve.ScheduleInfo
for the scheduleName passed in.Copyright © 2024 Pivotal Software, Inc.. All rights reserved.