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