org.quilt.frontend.ant
Class Scheduler

java.lang.Object
  |
  +--org.quilt.frontend.ant.Scheduler

public class Scheduler
extends java.lang.Object

Collects individual and batch tests during initial processing of the Ant build.xml file, then schedules tests for running. Before running any tests, batch tests are unpacked and attributes assigned.


Constructor Summary
Scheduler(QuiltTask t)
          One-arg constructor called at beginning of run
 
Method Summary
 void addBatchTest(BatchTest bt)
          Ant-compatible method for adding a batch test.
 void addTest(QuiltTest test)
          Ant-compatible method for adding test to queue.
 TaskControl getTaskControl()
          Get a reference to the TaskControl object created by the constructor.
 QuiltTest nextTest()
          Returns the next test or batch test available.
 void schedule()
          Zero out indexes into lists of tests and batch tests.
 void unbatch()
          Pass through the list of batch tests, creating individual tests and passing these to the scheduler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scheduler

public Scheduler(QuiltTask t)
One-arg constructor called at beginning of run

Method Detail

addBatchTest

public void addBatchTest(BatchTest bt)
Ant-compatible method for adding a batch test. When Ant encounters a <batchtest ... it calls QuiltTask.createBatchTest to get an instance, then uses the set* methods to set test parameters for the batch. QuiltTask uses this method to pass the batch test to the Scheduler.

Parameters:
bt - BatchTest instance created by QuiltTask

addTest

public void addTest(QuiltTest test)
Ant-compatible method for adding test to queue. When Ant counters a <test name=... it uses this method to create the QuiltTest object and then calls set* methods to set test parameters.

Parameters:
test - QuiltTest structure containing test parameters.

schedule

public void schedule()
Zero out indexes into lists of tests and batch tests. This will be called whenever the user wants to rescan the lists of tests and batch tests.


nextTest

public QuiltTest nextTest()
Returns the next test or batch test available.

Returns:
QuiltTest-compatible structure

unbatch

public void unbatch()
Pass through the list of batch tests, creating individual tests and passing these to the scheduler.


getTaskControl

public TaskControl getTaskControl()
Get a reference to the TaskControl object created by the constructor.



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.