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 Summary
ConstructorsConstructorDescriptionRuleInsightsUpdateScheduler(com.atlassian.scheduler.SchedulerService schedulerService, FeatureManager featureManager, com.atlassian.event.api.EventPublisher eventPublisher, TenantService tenantService, RuleInsightService ruleInsightService) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoiddestroy()voidonEvent(TenantPropertyUpdatedEvent propertyUpdatedEvent) voidonStart()voidonStop()We don't unschedule the job as in DC we still want it to run in the cluster.
-
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:
onStartin interfacecom.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:
onStopin interfacecom.atlassian.sal.api.lifecycle.LifecycleAware
-
destroy
- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
onEvent
-