Class SchedulingStrategies
java.lang.Object
org.apache.maven.surefire.junitcore.pc.SchedulingStrategies
The factory of
SchedulingStrategy.- Since:
- 2.16
- Author:
- Tibor Digana (tibor17)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulingStrategycreateInvokerStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) static SchedulingStrategycreateParallelSharedStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger, ExecutorService threadPool) ThethreadPoolpassed to this strategy can be shared in other strategies.static SchedulingStrategycreateParallelStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger, int nThreads) static SchedulingStrategycreateParallelStrategyUnbounded(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger)
-
Constructor Details
-
SchedulingStrategies
public SchedulingStrategies()
-
-
Method Details
-
createInvokerStrategy
public static SchedulingStrategy createInvokerStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) - Parameters:
logger- current error logger- Returns:
- sequentially executing strategy
-
createParallelStrategy
public static SchedulingStrategy createParallelStrategy(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger, int nThreads) - Parameters:
logger- current error loggernThreads- fixed pool capacity- Returns:
- parallel scheduling strategy
-
createParallelStrategyUnbounded
public static SchedulingStrategy createParallelStrategyUnbounded(org.apache.maven.plugin.surefire.log.api.ConsoleLogger logger) - Parameters:
logger- current error logger- Returns:
- parallel scheduling strategy with unbounded capacity
-