public interface ElasticInstanceScheduleManager
Modifier and Type | Method and Description |
---|---|
ElasticInstanceSchedule |
getElasticInstanceSchedule(long elasticInstanceScheduleId)
Gets the schedule associated with that id.
|
List<ElasticInstanceSchedule> |
getElasticInstanceSchedules()
Returns all schedules available in the system (enabled and disabled)
TODO Sorting
|
List<ElasticInstanceSchedule> |
getElasticInstanceSchedules(ElasticImageConfiguration elasticImageConfiguration)
Returns schedules related to
ElasticImageConfiguration (both enabled and disabled) |
void |
removeElasticInstanceSchedule(ElasticInstanceSchedule schedule)
Remove schedule and associated cron trigger
|
void |
removeElasticInstanceSchedule(long elasticInstanceScheduleId)
Remove schedule and associated cron trigger
|
void |
saveElasticInstanceSchedule(ElasticInstanceSchedule schedule)
Updates or creates the schedule.
|
@NotNull List<ElasticInstanceSchedule> getElasticInstanceSchedules()
@NotNull List<ElasticInstanceSchedule> getElasticInstanceSchedules(@NotNull ElasticImageConfiguration elasticImageConfiguration)
ElasticImageConfiguration
(both enabled and disabled)ElasticInstanceSchedule
or empty list if nothing was found@Nullable ElasticInstanceSchedule getElasticInstanceSchedule(long elasticInstanceScheduleId)
elasticInstanceScheduleId
- void saveElasticInstanceSchedule(ElasticInstanceSchedule schedule)
schedule
- schedule to be savedvoid removeElasticInstanceSchedule(@NotNull ElasticInstanceSchedule schedule)
schedule
- schedule to removevoid removeElasticInstanceSchedule(long elasticInstanceScheduleId)
elasticInstanceScheduleId
- id of schedule to removeCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.