Class DirectoryMonitorRefresherJob

java.lang.Object
com.atlassian.crowd.manager.directory.monitor.DirectoryMonitorRefresherJob
All Implemented Interfaces:
com.atlassian.scheduler.JobRunner

public class DirectoryMonitorRefresherJob extends Object implements com.atlassian.scheduler.JobRunner
Updates scheduled jobs related to directory synchronization, based on the current directory configuration. Synchronisable directories that no longer exist will have their scheduled jobs removed, directories that exist will be created, or updated as needed.
  • Field Details

    • JOB_RUNNER_KEY

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

    • DirectoryMonitorRefresherJob

      public DirectoryMonitorRefresherJob(com.atlassian.scheduler.SchedulerService schedulerService, DirectoryInstanceLoader directoryInstanceLoader, DirectoryManager directoryManager, com.atlassian.beehive.ClusterLockService clusterLockService, Clock clock, com.atlassian.crowd.embedded.spi.DcLicenseChecker licenseChecker)
  • Method Details

    • registerJobRunner

      @PostConstruct public void registerJobRunner()
    • unregisterJobRunner

      @PreDestroy public void unregisterJobRunner()
    • runJob

      public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
      Specified by:
      runJob in interface com.atlassian.scheduler.JobRunner