| java.lang.Object net.sourceforge.cruisecontrol.Schedule
All known Subclasses: net.sourceforge.cruisecontrol.MockSchedule,
Schedule | public class Schedule implements Serializable(Code) | | Handles scheduling different builds.
author: alden almagro, ThoughtWorks, Inc. 2001-2 |
Method Summary | |
public void | add(Builder builder) | public void | add(PauseBuilder pause) | public Element | build(int buildNumber, Date lastBuild, Date now, Map properties, String buildTarget, Progress progress) Select the correct Builder and start a build.
Parameters: buildNumber - The sequential build number. Parameters: lastBuild - The date of the last build. Parameters: now - The current time. Parameters: properties - Properties that would need to be passed in to the actual build tool. Parameters: buildTarget - the build target to use instead of the configured one (pass in null if no override is needed) Parameters: progress - the progress callback object. | boolean | builderDidntBuildToday(Date lastBuild, Date now, int buildTime) | long | checkPauseBuilders(Date now, long proposedTime) | long | checkTimeBuilders(Date now, long proposedTime) | PauseBuilder | findPause(Date date) | public List | getBuilders() | String | getDayString(int day) | public long | getInterval() | public boolean | getShowProgress() | long | getTimeToNextBuild(Date now, long sleepInterval) | public boolean | isPaused(Date now) Determine if CruiseControl should run a build, given the current time. | protected Builder | selectBuilder(int buildNumber, Date lastBuild, Date now) Select the correct build based on the current buildNumber and time.
Parameters: buildNumber - The sequential build number Parameters: lastBuild - The date of the last build. Parameters: now - The current time. | public void | setInterval(long intervalBetweenModificationChecks) | public void | setShowProgress(boolean showProgress) | public void | validate() |
MAX_INTERVAL_MILLISECONDS | final static long MAX_INTERVAL_MILLISECONDS(Code) | | |
MAX_INTERVAL_SECONDS | final static long MAX_INTERVAL_SECONDS(Code) | | |
ONE_DAY | final static long ONE_DAY(Code) | | |
ONE_MINUTE | final static long ONE_MINUTE(Code) | | |
ONE_SECOND | final static long ONE_SECOND(Code) | | |
ONE_YEAR | final static long ONE_YEAR(Code) | | |
build | public Element build(int buildNumber, Date lastBuild, Date now, Map properties, String buildTarget, Progress progress) throws CruiseControlException(Code) | | Select the correct Builder and start a build.
Parameters: buildNumber - The sequential build number. Parameters: lastBuild - The date of the last build. Parameters: now - The current time. Parameters: properties - Properties that would need to be passed in to the actual build tool. Parameters: buildTarget - the build target to use instead of the configured one (pass in null if no override is needed) Parameters: progress - the progress callback object. JDOM Element representation of build log. throws: CruiseControlException - if something fails |
builderDidntBuildToday | boolean builderDidntBuildToday(Date lastBuild, Date now, int buildTime)(Code) | | |
checkPauseBuilders | long checkPauseBuilders(Date now, long proposedTime)(Code) | | |
checkTimeBuilders | long checkTimeBuilders(Date now, long proposedTime)(Code) | | |
getDayString | String getDayString(int day)(Code) | | Parameters: day - int value english string value |
getInterval | public long getInterval()(Code) | | |
getShowProgress | public boolean getShowProgress()(Code) | | |
getTimeToNextBuild | long getTimeToNextBuild(Date now, long sleepInterval)(Code) | | |
isPaused | public boolean isPaused(Date now)(Code) | | Determine if CruiseControl should run a build, given the current time.
Parameters: now - The current date true if CruiseControl is currently paused (no build should run). |
selectBuilder | protected Builder selectBuilder(int buildNumber, Date lastBuild, Date now) throws CruiseControlException(Code) | | Select the correct build based on the current buildNumber and time.
Parameters: buildNumber - The sequential build number Parameters: lastBuild - The date of the last build. Parameters: now - The current time. The Builder that should be run. throws: CruiseControlException - if something fails |
setInterval | public void setInterval(long intervalBetweenModificationChecks)(Code) | | |
setShowProgress | public void setShowProgress(boolean showProgress)(Code) | | |
|
|