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, 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, PLAN_KEY, REPOSITORY_CHANGE_JOB
 
Constructor Summary
AbstractQuartzStrategy()
           
 
Method Summary
protected  org.quartz.Scheduler getScheduler()
           
protected abstract  java.lang.Class<? extends org.quartz.Job> getStrategyJob()
           
protected abstract  org.quartz.Trigger getTrigger(Plan plan)
           
 void init(Plan plan)
          Default to do nothing
 void initialiseJob(Plan plan)
          must be re runnable
 void removeJob(Plan plan)
           
 void setScheduler(org.quartz.Scheduler scheduler)
           
 
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
addDefaultValues, getDescription, getTextProvider, populateFromConfig, 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, validate
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 

Field Detail

scheduler

protected transient org.quartz.Scheduler scheduler
Constructor Detail

AbstractQuartzStrategy

public AbstractQuartzStrategy()
Method Detail

init

public void init(Plan plan)
Description copied from class: AbstractBuildStrategy
Default to do nothing

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

initialiseJob

public void initialiseJob(Plan plan)
Description copied from interface: QuartzStrategy
must be re runnable

Specified by:
initialiseJob in interface QuartzStrategy

removeJob

public void removeJob(Plan plan)
Specified by:
removeJob in interface QuartzStrategy

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
                                                          Plan plan)


Copyright © 2010 Atlassian. All Rights Reserved.