| java.lang.Object org.quilt.frontend.ant.Scheduler
Scheduler | public class Scheduler (Code) | | 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.
|
Method Summary | |
public void | addBatchTest(BatchTest bt) Ant-compatible method for adding a batch test. | public void | addTest(QuiltTest test) Ant-compatible method for adding test to queue. | public TaskControl | getTaskControl() Get a reference to the TaskControl object created by the
constructor. | public QuiltTest | nextTest() Returns the next test or batch test available. | public void | schedule() Zero out indexes into lists of tests and batch tests. | public void | unbatch() Pass through the list of batch tests, creating individual tests
and passing these to the scheduler. |
Scheduler | public Scheduler(QuiltTask t)(Code) | | One-arg constructor called at beginning of run
|
addBatchTest | public void addBatchTest(BatchTest bt)(Code) | | 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)(Code) | | 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. |
getTaskControl | public TaskControl getTaskControl()(Code) | | Get a reference to the TaskControl object created by the
constructor.
|
nextTest | public QuiltTest nextTest()(Code) | | Returns the next test or batch test available.
QuiltTest-compatible structure |
schedule | public void schedule()(Code) | | 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.
|
unbatch | public void unbatch()(Code) | | Pass through the list of batch tests, creating individual tests
and passing these to the scheduler.
|
|
|