Class SprintAutoStartStopScheduler

java.lang.Object
com.atlassian.greenhopper.service.sprint.services.SprintAutoStartStopScheduler

@Service public class SprintAutoStartStopScheduler extends Object
Schedule SprintAutoStartStopJob which performs SprintAutoStopService and SprintAutoStartService Job will be run in intervals defined by RUN_INTERVAL_PROPERTY_KEY or with default value DEFAULT_RUN_INTERVAL
Since:
v8.12
  • Constructor Details

    • SprintAutoStartStopScheduler

      @Autowired public SprintAutoStartStopScheduler(SprintAutoStartStopJob sprintAutoStartStopJob, com.atlassian.jira.config.properties.JiraProperties jiraProperties, com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.event.api.EventPublisher eventPublisher, AutoManagedSprintsFeature autoManagedSprintsFeature, com.atlassian.jira.cluster.ClusterManager clusterManager)
  • Method Details

    • schedule

      public void schedule()
    • onSpringContextStarted

      @PostConstruct public void onSpringContextStarted()
    • unschedule

      public void unschedule()
      Unschedule both job runner(@see SchedulerService.unregisterJobRunner(JobRunnerKey)) and job(@see SchedulerService.unscheduleJob(JobId). This method allow users to disable the feature entirely.
    • unscheduleClusterAware

      public void unscheduleClusterAware()
      Only unschedule job runner(@see SchedulerService.unregisterJobRunner(JobRunnerKey)) if the cluster contains other alive nodes. Thanks to that, job can be continued and run on other nodes.

      If this node is the only alive node in the cluster, both job runner (@see SchedulerService.unregisterJobRunner(JobRunnerKey)) and job (@see SchedulerService.unscheduleJob(JobId)) will be unschedule.

    • onFeatureEvent

      @EventListener public void onFeatureEvent(com.atlassian.jira.config.FeatureEvent event)
    • onParallelSprintsFeatureToggledEvent

      @EventListener public void onParallelSprintsFeatureToggledEvent(FeatureToggledEvent event)
    • onLicenseChangedEvent

      @EventListener public void onLicenseChangedEvent(com.atlassian.jira.license.LicenseChangedEvent event)