public abstract class AbstractQuartzTriggerActivator extends Object implements TriggerActivator
Modifier and Type | Field and Description |
---|---|
protected org.quartz.Scheduler |
scheduler |
Constructor and Description |
---|
AbstractQuartzTriggerActivator() |
Modifier and Type | Method and Description |
---|---|
void |
activate(Triggerable triggerable,
TriggerDefinition triggerDefinition)
This method should activate any services or threads that are required for this trigger to function.
|
protected org.quartz.JobDetail |
createJobDetail(Triggerable triggerable,
TriggerDefinition triggerDefinition,
String jobName) |
void |
deactivate(Triggerable triggerable,
TriggerDefinition triggerDefinition)
This method should deactivate any services or threads related to this trigger
This method is called:
- when triggered object is removed
- when trigger is removed
- before update of triggered object's configuration
- when trigger plugin module is disabled
|
protected org.quartz.Scheduler |
getScheduler()
Deprecated.
since 5.14 use
scheduler directly |
protected abstract Class<? extends org.quartz.Job> |
getStrategyJob() |
protected abstract org.quartz.Trigger |
getTrigger(Triggerable triggerable,
TriggerDefinition triggerDefinition,
Date lastShutdownTime) |
protected String |
getUniqueId(Triggerable triggerable,
TriggerDefinition triggerDefinition) |
void |
initAndActivate(Triggerable triggerable,
TriggerDefinition triggerDefinition,
Date lastShutdownTime)
This method is called on Bamboo server startup and when trigger plugin is enabled.
|
void |
setScheduler(org.quartz.Scheduler scheduler) |
public void initAndActivate(@NotNull Triggerable triggerable, @NotNull TriggerDefinition triggerDefinition, @Nullable Date lastShutdownTime)
TriggerActivator
TriggerActivator.activate(Triggerable, TriggerDefinition)
initAndActivate
in interface TriggerActivator
triggerable
- object to be triggeredtriggerDefinition
- how trigger is configuredlastShutdownTime
- last recorded shutdown time or null if no record of server having been shut down is availablepublic void activate(@NotNull Triggerable triggerable, @NotNull TriggerDefinition triggerDefinition)
TriggerActivator
activate
in interface TriggerActivator
triggerable
- object to be triggeredtriggerDefinition
- how trigger is configuredpublic void deactivate(@NotNull Triggerable triggerable, @NotNull TriggerDefinition triggerDefinition)
TriggerActivator
deactivate
in interface TriggerActivator
triggerable
- object not to be triggeredtriggerDefinition
- how trigger is configuredprotected String getUniqueId(Triggerable triggerable, TriggerDefinition triggerDefinition)
protected org.quartz.JobDetail createJobDetail(@NotNull Triggerable triggerable, TriggerDefinition triggerDefinition, @NotNull String jobName)
@NotNull protected abstract Class<? extends org.quartz.Job> getStrategyJob()
@Nullable protected abstract org.quartz.Trigger getTrigger(@NotNull Triggerable triggerable, @NotNull TriggerDefinition triggerDefinition, @Nullable Date lastShutdownTime)
@Deprecated protected org.quartz.Scheduler getScheduler()
scheduler
directlypublic void setScheduler(org.quartz.Scheduler scheduler)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.