Class SprintAutoStartStopScheduler
java.lang.Object
com.atlassian.greenhopper.service.sprint.services.SprintAutoStartStopScheduler
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 Summary
ConstructorsConstructorDescriptionSprintAutoStartStopScheduler
(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 Summary
Modifier and TypeMethodDescriptionvoid
onFeatureEvent
(com.atlassian.jira.config.FeatureEvent event) void
onLicenseChangedEvent
(com.atlassian.jira.license.LicenseChangedEvent event) void
void
void
schedule()
void
Unschedule both job runner(@seeSchedulerService.unregisterJobRunner(JobRunnerKey)
) and job(@seeSchedulerService.unscheduleJob(JobId)
.void
Only unschedule job runner(@seeSchedulerService.unregisterJobRunner(JobRunnerKey)
) if the cluster contains other alive nodes.
-
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(@seeSchedulerService.unregisterJobRunner(JobRunnerKey)
) and job(@seeSchedulerService.unscheduleJob(JobId)
. This method allow users to disable the feature entirely. -
unscheduleClusterAware
public void unscheduleClusterAware()Only unschedule job runner(@seeSchedulerService.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 (@seeSchedulerService.unscheduleJob(JobId)
) will be unschedule. -
onFeatureEvent
@EventListener public void onFeatureEvent(com.atlassian.jira.config.FeatureEvent event) -
onParallelSprintsFeatureToggledEvent
-
onLicenseChangedEvent
@EventListener public void onLicenseChangedEvent(com.atlassian.jira.license.LicenseChangedEvent event)
-