Class JiraDirectorySynchronisationAggregate

java.lang.Object
com.atlassian.jira.crowd.embedded.JiraDirectorySynchronisationAggregate
All Implemented Interfaces:
Startable

public class JiraDirectorySynchronisationAggregate extends Object implements Startable
This class is Jira's Startable wrapper/holder for DirectoryMonitorRefresherStarter, DirectoryMonitorRefresherJob and DirectoryPollerJobRunner components all responsible for directory synchronisation scheduling. Note: Jira/Pico component lifecycle is not calling @PostConstruct annotated methods on component start - that's why DirectoryMonitorRefresherStarter and DirectoryMonitorRefresherJob would not start if registered directly in Pico. Neither would DirectoryPollerJobRunner.
Since:
v8.11
  • Field Details

    • DIRECTORY_POLLER_JOB_RUNNER_KEY

      public static final com.atlassian.scheduler.config.JobRunnerKey DIRECTORY_POLLER_JOB_RUNNER_KEY
  • Constructor Details

    • JiraDirectorySynchronisationAggregate

      public JiraDirectorySynchronisationAggregate(com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.crowd.directory.loader.DirectoryInstanceLoader directoryInstanceLoader, com.atlassian.crowd.manager.directory.DirectoryManager directoryManager, com.atlassian.crowd.manager.directory.DirectorySynchroniser directorySynchroniser, com.atlassian.beehive.ClusterLockService clusterLockService, ClusterManager clusterManager, Clock clock)
  • Method Details

    • start

      public void start() throws Exception
      Description copied from interface: Startable
      This method will be called after the plugin system is fully initialised and all components added to the dependency injection framework.
      Specified by:
      start in interface Startable
      Throws:
      Exception - Allows implementations to throw an Exception.
    • onJiraStartedEvent

      @EventListener public void onJiraStartedEvent(JiraStartedEvent event)
    • onJiraUpgradeFinishedEvent

      @EventListener public void onJiraUpgradeFinishedEvent(JiraUpgradeFinishedEvent event)