Class SchedulingStrategies
java.lang.Object
org.apache.maven.surefire.junitcore.pc.SchedulingStrategies
The factory of
SchedulingStrategy
.- Since:
- 2.16
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SchedulingStrategy
createInvokerStrategy
(ConsoleLogger logger) static SchedulingStrategy
createParallelSharedStrategy
(ConsoleLogger logger, ExecutorService threadPool) ThethreadPool
passed to this strategy can be shared in other strategies.static SchedulingStrategy
createParallelStrategy
(ConsoleLogger logger, int nThreads) static SchedulingStrategy
-
Field Details
-
DAEMON_THREAD_FACTORY
-
-
Constructor Details
-
SchedulingStrategies
public SchedulingStrategies()
-
-
Method Details
-
createInvokerStrategy
- Parameters:
logger
- current error logger- Returns:
- sequentially executing strategy
-
createParallelStrategy
- Parameters:
logger
- current error loggernThreads
- fixed pool capacity- Returns:
- parallel scheduling strategy
-
createParallelStrategyUnbounded
- Parameters:
logger
- current error logger- Returns:
- parallel scheduling strategy with unbounded capacity
-