Class AgentAutomaticManagementJobScheduler
java.lang.Object
com.atlassian.bamboo.agent.automatic.management.AgentAutomaticManagementJobScheduler
Schedules and manages jobs for automatic management of agents.
This includes scheduling and rescheduling jobs for removing offline remote and elastic agents.
- Since:
- 11.0
-
Constructor Summary
ConstructorsConstructorDescriptionAgentAutomaticManagementJobScheduler
(org.quartz.Scheduler scheduler, AdministrationConfigurationAccessor administrationConfigurationAccessor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Reschedules jobs for automatic management of agents.void
scheduleAutomaticManagement
(boolean startImmediately) Schedules jobs for automatic management of agents based on the current configuration.
-
Constructor Details
-
AgentAutomaticManagementJobScheduler
public AgentAutomaticManagementJobScheduler(org.quartz.Scheduler scheduler, AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Details
-
scheduleAutomaticManagement
public void scheduleAutomaticManagement(boolean startImmediately) throws org.quartz.SchedulerException Schedules jobs for automatic management of agents based on the current configuration. This includes scheduling jobs for removing offline remote and elastic agents.- Throws:
org.quartz.SchedulerException
- if there is an error scheduling the jobs
-
rescheduleAutomaticManagement
public void rescheduleAutomaticManagement() throws org.quartz.SchedulerExceptionReschedules jobs for automatic management of agents. This includes deleting existing jobs and scheduling new ones based on the current configuration.- Throws:
org.quartz.SchedulerException
- if there is an error rescheduling the jobs
-