|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.agent.elastic.schedule.ElasticInstanceScheduleManagerImpl
public class ElasticInstanceScheduleManagerImpl
Constructor Summary | |
---|---|
ElasticInstanceScheduleManagerImpl(ElasticInstanceScheduleDao elasticInstanceScheduleDao,
ElasticInstanceScheduleScheduler elasticInstanceScheduleScheduler)
|
Method Summary | |
---|---|
ElasticInstanceSchedule |
getElasticInstanceSchedule(long elasticInstanceScheduleId)
Gets the schedule associated with that id. |
java.util.List<ElasticInstanceSchedule> |
getElasticInstanceSchedules()
Returns all schedules available in the system (enabled and disabled) |
java.util.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElasticInstanceScheduleManagerImpl(ElasticInstanceScheduleDao elasticInstanceScheduleDao, ElasticInstanceScheduleScheduler elasticInstanceScheduleScheduler)
Method Detail |
---|
@NotNull public java.util.List<ElasticInstanceSchedule> getElasticInstanceSchedules()
ElasticInstanceScheduleManager
getElasticInstanceSchedules
in interface ElasticInstanceScheduleManager
@NotNull public java.util.List<ElasticInstanceSchedule> getElasticInstanceSchedules(@NotNull ElasticImageConfiguration elasticImageConfiguration)
ElasticInstanceScheduleManager
ElasticImageConfiguration
(both enabled and disabled)
getElasticInstanceSchedules
in interface ElasticInstanceScheduleManager
ElasticInstanceSchedule
or empty list if nothing was foundpublic ElasticInstanceSchedule getElasticInstanceSchedule(long elasticInstanceScheduleId)
ElasticInstanceScheduleManager
getElasticInstanceSchedule
in interface ElasticInstanceScheduleManager
public void saveElasticInstanceSchedule(ElasticInstanceSchedule schedule)
ElasticInstanceScheduleManager
saveElasticInstanceSchedule
in interface ElasticInstanceScheduleManager
schedule
- schedule to be savedpublic void removeElasticInstanceSchedule(@NotNull ElasticInstanceSchedule schedule)
ElasticInstanceScheduleManager
removeElasticInstanceSchedule
in interface ElasticInstanceScheduleManager
schedule
- schedule to removepublic void removeElasticInstanceSchedule(long elasticInstanceScheduleId)
ElasticInstanceScheduleManager
removeElasticInstanceSchedule
in interface ElasticInstanceScheduleManager
elasticInstanceScheduleId
- id of schedule to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |