os.djtagger
Class TaskRunner

java.lang.Object
  extended by os.djtagger.TaskRunner

public class TaskRunner
extends java.lang.Object


Constructor Summary
TaskRunner()
           
 
Method Summary
static java.util.List<Tagger> createDefaultTaggers()
           
static Task[][] createTaskGroups(java.util.List<Task> tasks)
           
static Task[][] createTaskGroups(Task[] tasks)
           
static TaskRunner findActiveTaskRunner()
           
 Task findTaskOfType(Task lastBefore, java.lang.Class taskType)
           
 boolean getDryRun()
           
 int getFileCount()
           
 org.apache.commons.io.filefilter.IOFileFilter getFileFilter()
           
 int getFileIdx()
           
 int getPassCount()
           
 int getPassIdx()
           
 org.apache.commons.io.filefilter.IOFileFilter getPathFilter()
           
 java.io.File getScanRoot()
           
 boolean getStopProcessingOnError()
           
 boolean getStopTasksForCurrentFileOnError()
           
protected  java.util.Iterator<? extends Task> iterateOverTasks()
           
 void printDryRunInfo(java.lang.String mess)
           
 void printInfo(java.lang.String mess)
           
 void printWarning(java.lang.String mess)
           
 void process()
           
protected  java.lang.String processForTestcase()
           
protected  java.lang.String runActionsForTestcase(java.io.File file, java.io.File currentName, java.util.Iterator<? extends Action> actionI)
           
 void setDryRun(boolean dryRun)
           
 void setErrorStream(java.io.OutputStream err)
           
 void setFileFilter(org.apache.commons.io.filefilter.IOFileFilter fileFilter)
           
 void setOutputStream(java.io.OutputStream out)
           
 void setPathFilter(org.apache.commons.io.filefilter.IOFileFilter pathFilter)
           
 void setScanRoot(java.io.File scanRoot)
           
 void setStopProcessingOnError(boolean stopProcessingOnError)
           
 void setStopTasksForCurrentFileOnError(boolean stopTasksForCurrentFileOnError)
           
protected  void setTaggers(java.util.List<? extends Tagger> taggers)
           
 void setTasks(java.util.Collection<? extends Task> actions)
           
 Tagger taggerForFile(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskRunner

public TaskRunner()
Method Detail

iterateOverTasks

protected java.util.Iterator<? extends Task> iterateOverTasks()

setTasks

public void setTasks(java.util.Collection<? extends Task> actions)

setFileFilter

public void setFileFilter(org.apache.commons.io.filefilter.IOFileFilter fileFilter)

setPathFilter

public void setPathFilter(org.apache.commons.io.filefilter.IOFileFilter pathFilter)

getStopProcessingOnError

public boolean getStopProcessingOnError()

setStopProcessingOnError

public void setStopProcessingOnError(boolean stopProcessingOnError)

getStopTasksForCurrentFileOnError

public boolean getStopTasksForCurrentFileOnError()

setStopTasksForCurrentFileOnError

public void setStopTasksForCurrentFileOnError(boolean stopTasksForCurrentFileOnError)

getDryRun

public boolean getDryRun()

setDryRun

public void setDryRun(boolean dryRun)

process

public void process()

processForTestcase

protected java.lang.String processForTestcase()

runActionsForTestcase

protected java.lang.String runActionsForTestcase(java.io.File file,
                                                 java.io.File currentName,
                                                 java.util.Iterator<? extends Action> actionI)

setOutputStream

public void setOutputStream(java.io.OutputStream out)

setErrorStream

public void setErrorStream(java.io.OutputStream err)

getFileCount

public int getFileCount()

getFileIdx

public int getFileIdx()

getPassCount

public int getPassCount()

getPassIdx

public int getPassIdx()

findActiveTaskRunner

public static TaskRunner findActiveTaskRunner()

getScanRoot

public java.io.File getScanRoot()

setScanRoot

public void setScanRoot(java.io.File scanRoot)

getPathFilter

public org.apache.commons.io.filefilter.IOFileFilter getPathFilter()

getFileFilter

public org.apache.commons.io.filefilter.IOFileFilter getFileFilter()

findTaskOfType

public Task findTaskOfType(Task lastBefore,
                           java.lang.Class taskType)

setTaggers

protected void setTaggers(java.util.List<? extends Tagger> taggers)

taggerForFile

public Tagger taggerForFile(java.io.File file)

createTaskGroups

public static Task[][] createTaskGroups(java.util.List<Task> tasks)

createTaskGroups

public static Task[][] createTaskGroups(Task[] tasks)

printDryRunInfo

public void printDryRunInfo(java.lang.String mess)

printWarning

public void printWarning(java.lang.String mess)

printInfo

public void printInfo(java.lang.String mess)

createDefaultTaggers

public static java.util.List<Tagger> createDefaultTaggers()


Copyright © 2007-2010 Pointbreak. All Rights Reserved.