Class RuleInsightsUpdateScheduler

java.lang.Object
com.codebarrel.jira.plugin.automation.schedule.RuleInsightsUpdateScheduler
All Implemented Interfaces:
com.atlassian.sal.api.lifecycle.LifecycleAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean

@Component public class RuleInsightsUpdateScheduler extends Object implements com.atlassian.sal.api.lifecycle.LifecycleAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
  • Constructor Details

    • RuleInsightsUpdateScheduler

      @Inject public RuleInsightsUpdateScheduler(com.atlassian.scheduler.SchedulerService schedulerService, FeatureManager featureManager, com.atlassian.event.api.EventPublisher eventPublisher, TenantService tenantService, RuleInsightService ruleInsightService)
  • Method Details

    • onStart

      public void onStart()
      Specified by:
      onStart in interface com.atlassian.sal.api.lifecycle.LifecycleAware
    • onStop

      public void onStop()
      We don't unschedule the job as in DC we still want it to run in the cluster. If plugin is uninstalled it leaves the job in place and since there is no runner, it simply wont run.
      Specified by:
      onStop in interface com.atlassian.sal.api.lifecycle.LifecycleAware
    • destroy

      public void destroy() throws Exception
      Specified by:
      destroy in interface org.springframework.beans.factory.DisposableBean
      Throws:
      Exception
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • onEvent

      @EventListener public void onEvent(@Nonnull TenantPropertyUpdatedEvent propertyUpdatedEvent)