net.sourceforge.cruisecontrol
Class PauseBuilder

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.PerDayScheduleItem
      extended bynet.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

Field Summary
 
Fields inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem
INVALID_NAME_OF_DAY, NOT_SET
 
Constructor Summary
PauseBuilder()
           
 
Method Summary
 int getEndTime()
           
 int getStartTime()
           
 boolean isPaused(java.util.Date date)
          Determine if the build is paused at the given time.
 void setEndTime(int time)
           
 void setStartTime(int time)
           
 void validate()
           
 
Methods inherited from class net.sourceforge.cruisecontrol.util.PerDayScheduleItem
getDay, setDay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PauseBuilder

public PauseBuilder()
Method Detail

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