public class SchedulingStrategies extends Object
SchedulingStrategy
.Constructor and Description |
---|
SchedulingStrategies() |
Modifier and Type | Method and Description |
---|---|
static SchedulingStrategy |
createInvokerStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) |
static SchedulingStrategy |
createParallelSharedStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger,
ExecutorService threadPool)
The
threadPool passed to this strategy can be shared in other strategies. |
static SchedulingStrategy |
createParallelStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger,
int nThreads) |
static SchedulingStrategy |
createParallelStrategyUnbounded(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) |
public static SchedulingStrategy createInvokerStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)
logger
- current error loggerpublic static SchedulingStrategy createParallelStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger, int nThreads)
logger
- current error loggernThreads
- fixed pool capacitypublic static SchedulingStrategy createParallelStrategyUnbounded(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)
logger
- current error loggerpublic static SchedulingStrategy createParallelSharedStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger, ExecutorService threadPool)
threadPool
passed to this strategy can be shared in other strategies.
SchedulingStrategy.finished()
is waiting until own tasks have finished.
New tasks will not be scheduled by this call in this strategy. This strategy is not
waiting for other strategies to finish. The RunnerScheduler.finished()
may
freely use SchedulingStrategy.finished()
.logger
- current error loggerthreadPool
- thread pool possibly shared with other strategiesNullPointerException
- if threadPool
is nullCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.