net.objectlab.qalab.ant
Class BuildStatMoverTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by net.objectlab.qalab.ant.BuildStatMoverTask
All Implemented Interfaces:
TaskLogger

public class BuildStatMoverTask
extends org.apache.tools.ant.Task
implements TaskLogger

An Ant task to create the mover XML file given some parameters.

 

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
BuildStatMoverTask()
           
 
Method Summary
 void execute()
          Method invoked by the ant framework to execute the compilation of statistics movers withing the time window.
 java.lang.String getEndTimeWindow()
           
 java.lang.Integer getHoursOffsetForLastRun()
           
 java.io.File getInputFile()
           
 java.io.File getOutputXMLfile()
           
 java.lang.String getStartTimeHoursOffset()
           
 java.lang.String getStartTimeWindow()
           
 java.lang.String getTypes()
           
 boolean isQuiet()
           
 boolean isWeekendAdjustment()
           
 void log(java.lang.String text)
          uses the super log from the conventional Ant Task log.
 void setEndTimeWindow(java.lang.String endTime)
           
 void setHoursOffsetForLastRun(java.lang.Integer hoursOffsetForLastRun)
           
 void setInputFile(java.io.File inputXML)
          Set the base file xml document, typically qalab.xml.
 void setOutputXMLfile(java.io.File outputFile)
          Set the destination XML file for the up/down stats.
 void setQuiet(boolean noLog)
           
 void setStartTimeHoursOffset(java.lang.String hours)
          Set the offset time in hours to define start window.
 void setStartTimeWindow(java.lang.String startTime)
           
 void setTypes(java.lang.String type)
          Sets the types on which the report is based, checkstyle|findbugs|pmd |simian can be combined in a comma separated format.
 void setWeekendAdjustment(boolean wkendadj)
           
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildStatMoverTask

public BuildStatMoverTask()
Method Detail

isQuiet

public final boolean isQuiet()
Returns:
true if no log enabled.

setQuiet

public final void setQuiet(boolean noLog)
Parameters:
noLog - true and the system will not output debug info.

execute

public final void execute()
Method invoked by the ant framework to execute the compilation of statistics movers withing the time window.

Overrides:
execute in class org.apache.tools.ant.Task

log

public final void log(java.lang.String text)
uses the super log from the conventional Ant Task log.

Specified by:
log in interface TaskLogger
Overrides:
log in class org.apache.tools.ant.Task
Parameters:
text - the text to log

getStartTimeHoursOffset

public final java.lang.String getStartTimeHoursOffset()
Returns:
Return the offset time in hours.

setStartTimeHoursOffset

public final void setStartTimeHoursOffset(java.lang.String hours)
Set the offset time in hours to define start window.

Parameters:
hours - offset in hours

getTypes

public final java.lang.String getTypes()
Returns:
Return List of types handled (checkstyle|findbugs|pmd|simian).

setTypes

public final void setTypes(java.lang.String type)
Sets the types on which the report is based, checkstyle|findbugs|pmd |simian can be combined in a comma separated format.

Parameters:
type - single or multiple types.

getOutputXMLfile

public final java.io.File getOutputXMLfile()
Returns:
Return the destination XML file for the up/down stats.

setOutputXMLfile

public final void setOutputXMLfile(java.io.File outputFile)
Set the destination XML file for the up/down stats.

Parameters:
outputFile - XML destination file.

getInputFile

public final java.io.File getInputFile()
Returns:
the input base file xml document, typically qalab.xml.

setInputFile

public final void setInputFile(java.io.File inputXML)
Set the base file xml document, typically qalab.xml.

Parameters:
inputXML - the qalab.xml.

setWeekendAdjustment

public final void setWeekendAdjustment(boolean wkendadj)
Parameters:
wkendadj - true will deduce a further 48 hours to the start window in order to take into account weekend if the start window fell on a Saturday or Sunday.

isWeekendAdjustment

public final boolean isWeekendAdjustment()
Returns:
true if system is supposed to adjust for weekend.

setEndTimeWindow

public final void setEndTimeWindow(java.lang.String endTime)
Parameters:
endTime - The endTimeWindow to set.

getEndTimeWindow

public final java.lang.String getEndTimeWindow()
Returns:
Returns the endTimeWindow.

setStartTimeWindow

public final void setStartTimeWindow(java.lang.String startTime)
Parameters:
startTime - The startTimeWindow to set.

getStartTimeWindow

public final java.lang.String getStartTimeWindow()
Returns:
Returns the startTimeWindow.

getHoursOffsetForLastRun

public java.lang.Integer getHoursOffsetForLastRun()

setHoursOffsetForLastRun

public void setHoursOffsetForLastRun(java.lang.Integer hoursOffsetForLastRun)