com.atlassian.bamboo.build.strategy
Class AbstractQuartzStrategy

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
      extended by com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
All Implemented Interfaces:
BuildStrategy, QuartzStrategy, BambooIdProvider, ConvertibleFromConfig, java.io.Serializable
Direct Known Subclasses:
CronTriggerBuildStrategy, PollingBuildStrategy, SingleDailyBuildStrategy

public abstract class AbstractQuartzStrategy
extends AbstractBuildStrategy
implements QuartzStrategy

See Also:
Serialized Form

Field Summary
protected  org.quartz.Scheduler scheduler
           
 
Fields inherited from interface com.atlassian.bamboo.build.strategy.QuartzStrategy
BUILD_STRATEGY, REPOSITORY_CHANGE_JOB, TRIGGER_CONDITIONS_CONFIGURATION, TRIGGER_ID, TRIGGERED_OBJECT_ID, TRIGGERING_REPOSITORIES
 
Constructor Summary
AbstractQuartzStrategy()
           
 
Method Summary
 boolean canTrigger(java.lang.Class<? extends Triggerable> triggerableType)
          Default implementation: trigger only works for Chains
protected  org.quartz.Scheduler getScheduler()
           
protected abstract  java.lang.Class<? extends org.quartz.Job> getStrategyJob()
           
protected abstract  org.quartz.Trigger getTrigger(Triggerable plan)
           
protected  java.lang.String getUniqueId(Triggerable triggerable)
           
 void init(Triggerable triggerable)
          Default to do nothing
 void initialiseJob(Triggerable triggerable)
          must be re runnable
 void removeJob(Triggerable triggerable)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
addDefaultValues, getBuildStrategyManager, getDescription, getId, getTextProvider, getTriggerConditionsConfiguration, getUserDescription, populateFromConfig, setId, setUserDescription, toConfiguration, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategy
addDefaultValues, getDescription, getKey, getName, getTriggerConditionsConfiguration, getUserDescription, setId, setUserDescription, validate
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

scheduler

protected transient org.quartz.Scheduler scheduler
Constructor Detail

AbstractQuartzStrategy

public AbstractQuartzStrategy()
Method Detail

init

public void init(@NotNull
                 Triggerable triggerable)
Description copied from class: AbstractBuildStrategy
Default to do nothing

Specified by:
init in interface BuildStrategy
Overrides:
init in class AbstractBuildStrategy

initialiseJob

public void initialiseJob(Triggerable triggerable)
Description copied from interface: QuartzStrategy
must be re runnable

Specified by:
initialiseJob in interface QuartzStrategy

getUniqueId

protected java.lang.String getUniqueId(Triggerable triggerable)

removeJob

public void removeJob(Triggerable triggerable)
Specified by:
removeJob in interface QuartzStrategy

canTrigger

public boolean canTrigger(@NotNull
                          java.lang.Class<? extends Triggerable> triggerableType)
Description copied from class: AbstractBuildStrategy
Default implementation: trigger only works for Chains

Specified by:
canTrigger in interface BuildStrategy
Overrides:
canTrigger in class AbstractBuildStrategy
Returns:
true iff build strategy is applicable to a Triggerable type

getScheduler

protected org.quartz.Scheduler getScheduler()

setScheduler

public void setScheduler(org.quartz.Scheduler scheduler)

getStrategyJob

@NotNull
protected abstract java.lang.Class<? extends org.quartz.Job> getStrategyJob()

getTrigger

@Nullable
protected abstract org.quartz.Trigger getTrigger(@NotNull
                                                          Triggerable plan)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.