Class AgentAutomaticManagementJobScheduler

java.lang.Object
com.atlassian.bamboo.agent.automatic.management.AgentAutomaticManagementJobScheduler

public class AgentAutomaticManagementJobScheduler extends Object
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 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.SchedulerException
      Reschedules 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