com.atlassian.bamboo.build.strategy
Class SingleDailyBuildStrategy
java.lang.Object
com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
com.atlassian.bamboo.build.strategy.SingleDailyBuildStrategy
- All Implemented Interfaces:
- BuildStrategy, QuartzStrategy, ConvertibleFromConfig, java.io.Serializable
public class SingleDailyBuildStrategy
- extends AbstractQuartzStrategy
Builds once a day at a specified time.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleDailyBuildStrategy
public SingleDailyBuildStrategy()
getKey
public java.lang.String getKey()
- Description copied from interface:
BuildStrategy
- A lowercase string key to identify the build strategy
- Returns:
- String must not be null
getName
public java.lang.String getName()
- Description copied from interface:
BuildStrategy
- Returns the display name of the strategy
- Returns:
- String must not be null
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interface BuildStrategy
- Overrides:
getDescription
in class AbstractBuildStrategy
toConfiguration
@NotNull
public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
- Description copied from interface:
ConvertibleFromConfig
- Generate a
HierarchicalConfiguration
from the current state of the object
- Specified by:
toConfiguration
in interface ConvertibleFromConfig
- Overrides:
toConfiguration
in class AbstractBuildStrategy
- Returns:
- Always returns an
HierarchicalConfiguration
. Never null
populateFromConfig
public void populateFromConfig(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration config)
- Description copied from interface:
ConvertibleFromConfig
- Update the current object with data in the
HierarchicalConfiguration
- Specified by:
populateFromConfig
in interface ConvertibleFromConfig
- Overrides:
populateFromConfig
in class AbstractBuildStrategy
validate
public ErrorCollection validate(BuildConfiguration buildConfiguration)
- Description copied from interface:
BuildStrategy
- Takes in a
BuildConfiguration
and returns any errors possible
- Specified by:
validate
in interface BuildStrategy
- Overrides:
validate
in class AbstractBuildStrategy
- Parameters:
buildConfiguration
- not null
- Returns:
ErrorCollection
. must not be null
getStrategyJob
@NotNull
protected java.lang.Class<? extends org.quartz.Job> getStrategyJob()
- Specified by:
getStrategyJob
in class AbstractQuartzStrategy
getTrigger
@Nullable
protected org.quartz.Trigger getTrigger(@NotNull
Plan plan)
- Specified by:
getTrigger
in class AbstractQuartzStrategy
getHour
public int getHour()
setHour
public void setHour(int hour)
getMinute
public int getMinute()
setMinute
public void setMinute(int minute)
getFormattedTime
public java.lang.String getFormattedTime()
Copyright © 2010 Atlassian. All Rights Reserved.