net.sourceforge.cruisecontrol.logmanipulators
Class BaseManipulator

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.logmanipulators.BaseManipulator
All Implemented Interfaces:
Manipulator
Direct Known Subclasses:
DeleteManipulator, GZIPManipulator

public abstract class BaseManipulator
extends java.lang.Object
implements Manipulator


Constructor Summary
BaseManipulator()
           
 
Method Summary
protected  java.io.File[] getRelevantFiles(java.lang.String logDir, boolean ignoreSuffix)
          Identifies the relevant Logfiles from the given Logdir
 void setEvery(int every)
          sets the backup keep amount
 void setUnit(java.lang.String unit)
          sets the unit on which the backup should run. valid are YEAR, MONTH, WEEK, DAY
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.cruisecontrol.Manipulator
execute
 

Constructor Detail

BaseManipulator

public BaseManipulator()
Method Detail

getRelevantFiles

protected java.io.File[] getRelevantFiles(java.lang.String logDir,
                                          boolean ignoreSuffix)
Identifies the relevant Logfiles from the given Logdir

Parameters:
logDir - the logDir as String
Returns:
File-Array of the the relevant files.

validate

public void validate()
              throws CruiseControlException
Specified by:
validate in interface Manipulator
Throws:
CruiseControlException

setEvery

public void setEvery(int every)
              throws CruiseControlException
sets the backup keep amount

Parameters:
every -
Throws:
CruiseControlException

setUnit

public void setUnit(java.lang.String unit)
             throws CruiseControlException
sets the unit on which the backup should run. valid are YEAR, MONTH, WEEK, DAY

Parameters:
unit - String that is used as Key for the Calendar-Constants
Throws:
CruiseControlException