net.sourceforge.cruisecontrol
Class PauseBuilder
java.lang.Object
net.sourceforge.cruisecontrol.util.PerDayScheduleItem
net.sourceforge.cruisecontrol.PauseBuilder
- All Implemented Interfaces:
- java.io.Serializable
- public class PauseBuilder
- extends PerDayScheduleItem
Used by Schedule
to define periods of time when CruiseControl should not even attempt a build. Useful
for making sure CruiseControl does not run during server backup times, etc.
- Author:
- Alden Almagro
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PauseBuilder
public PauseBuilder()
validate
public void validate()
throws CruiseControlException
- Throws:
CruiseControlException
setStartTime
public void setStartTime(int time)
setEndTime
public void setEndTime(int time)
getStartTime
public int getStartTime()
getEndTime
public int getEndTime()
isPaused
public boolean isPaused(java.util.Date date)
- Determine if the build is paused at the given time.
- Parameters:
date
- Date set to current date/time
- Returns:
- true if the build is paused at date