|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.cruisecontrol.Schedule
Handles scheduling different builds.
Constructor Summary | |
Schedule()
|
Method Summary | |
void |
add(Builder builder)
|
void |
add(PauseBuilder pause)
|
org.jdom.Element |
build(int buildNumber,
java.util.Date lastBuild,
java.util.Date now,
java.util.Map properties,
java.lang.String buildTarget)
Select the correct Builder and start a build. |
java.util.List |
getBuilders()
|
long |
getInterval()
|
boolean |
isPaused(java.util.Date now)
Determine if CruiseControl should run a build, given the current time. |
protected Builder |
selectBuilder(int buildNumber,
java.util.Date lastBuild,
java.util.Date now)
Select the correct build based on the current buildNumber and time. |
void |
setInterval(long intervalBetweenModificationChecks)
|
void |
validate()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Schedule()
Method Detail |
public void add(Builder builder)
public void add(PauseBuilder pause)
public boolean isPaused(java.util.Date now)
now
- The current date
public org.jdom.Element build(int buildNumber, java.util.Date lastBuild, java.util.Date now, java.util.Map properties, java.lang.String buildTarget) throws CruiseControlException
Builder
and start a build.
buildNumber
- The sequential build number.lastBuild
- The date of the last build.now
- The current time.properties
- Properties that would need to be passed in to the actual build tool.buildTarget
- the build target to use instead of the configured one (pass in null if no override is needed)
CruiseControlException
protected Builder selectBuilder(int buildNumber, java.util.Date lastBuild, java.util.Date now) throws CruiseControlException
buildNumber
- The sequential build numberlastBuild
- The date of the last build.now
- The current time.
Builder
that should be run.
CruiseControlException
public void setInterval(long intervalBetweenModificationChecks)
public long getInterval()
public void validate() throws CruiseControlException
CruiseControlException
public java.util.List getBuilders()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |