|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.junit.ConcurrentRunnerScheduler
public class ConcurrentRunnerScheduler
Scheduler for concurrent runners.
| Field Summary | |
|---|---|
protected CompletionService<Integer> |
completionService
Completion service. |
protected ExecutorService |
executorService
Executor service. |
static double |
RATE
Thread creation ration. |
protected Queue<Future<Integer>> |
tasks
Future tasks. |
| Constructor Summary | |
|---|---|
ConcurrentRunnerScheduler(Class<?> klass)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
finished()
|
void |
schedule(Runnable childStatement)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double RATE
protected final ExecutorService executorService
protected final CompletionService<Integer> completionService
protected final Queue<Future<Integer>> tasks
| Constructor Detail |
|---|
public ConcurrentRunnerScheduler(Class<?> klass)
klass - The target class test.| Method Detail |
|---|
public void schedule(Runnable childStatement)
schedule in interface org.junit.runners.model.RunnerSchedulerpublic void finished()
finished in interface org.junit.runners.model.RunnerScheduler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||