|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.cnes.sirius.validate.parallel.ParallelRunner
public class ParallelRunner
Runner for parallel tests written as ParallelTask instances.
Constructor Summary | |
---|---|
ParallelRunner()
Default constructor. |
|
ParallelRunner(int iThreadPoolSize)
Constructor with thread pool size parameter. |
Method Summary | |
---|---|
void |
addTask(ParallelTaskFactory<?> taskFactory,
int nbRuns)
Adds a new task factory, with the number of instances it should provide, OR updates the number of instances if the task factory was added before. |
String |
getResultSummary()
Gets the result summary. |
void |
resizeThreadPool(int thPoolSize)
Resizes the thread pool. |
boolean |
runAll()
Run all the tasks. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParallelRunner()
public ParallelRunner(int iThreadPoolSize)
iThreadPoolSize
- thread pool sizeMethod Detail |
---|
public void addTask(ParallelTaskFactory<?> taskFactory, int nbRuns)
taskFactory
- the task factorynbRuns
- the number of instances to create, equal to the number of "runs" for the matching ParallelTask class.public String getResultSummary()
public boolean runAll() throws InterruptedException
InterruptedException
- in case of thread pool interruptionpublic void resizeThreadPool(int thPoolSize)
thPoolSize
- new thread pool size
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |