com.atlassian.bamboo.agent.elastic.schedule
Interface ElasticInstanceScheduleManager

All Known Implementing Classes:
ElasticInstanceScheduleManagerImpl

public interface ElasticInstanceScheduleManager

Manages the cron schedule for bringing up & down elastic instances


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)
 void removeElasticInstanceSchedule(long elasticInstanceScheduleId)
          Remove scheudle and associated cron trigger
 void saveElasticInstanceSchedule(ElasticInstanceSchedule schedule)
          Updates or creates the schedule.
 

Method Detail

getElasticInstanceSchedules

@NotNull
java.util.List<ElasticInstanceSchedule> getElasticInstanceSchedules()
Returns all schedules available in the system (enabled and disabled)

Returns:
Empty list if no schedules are found

getElasticInstanceSchedule

@Nullable
ElasticInstanceSchedule getElasticInstanceSchedule(long elasticInstanceScheduleId)
Gets the schedule associated with that id. null if none can be found for the id

Parameters:
elasticInstanceScheduleId -
Returns:

saveElasticInstanceSchedule

void saveElasticInstanceSchedule(ElasticInstanceSchedule schedule)
Updates or creates the schedule. If id is -1, then a new schedule will be created (with the new id updated in the parameter). The appropriate cron trigger will also be updated.

Parameters:
schedule -

removeElasticInstanceSchedule

void removeElasticInstanceSchedule(long elasticInstanceScheduleId)
Remove scheudle and associated cron trigger

Parameters:
elasticInstanceScheduleId -


Copyright © 2010 Atlassian. All Rights Reserved.