Module org.junit.platform.engine
Enum Class DefaultParallelExecutionConfigurationStrategy
java.lang.Object
java.lang.Enum<DefaultParallelExecutionConfigurationStrategy>
org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
- All Implemented Interfaces:
Serializable
,Comparable<DefaultParallelExecutionConfigurationStrategy>
,java.lang.constant.Constable
,ParallelExecutionConfigurationStrategy
@API(status=EXPERIMENTAL,
since="1.3")
public enum DefaultParallelExecutionConfigurationStrategy
extends Enum<DefaultParallelExecutionConfigurationStrategy>
implements ParallelExecutionConfigurationStrategy
Default implementations of configuration strategies for parallel test
execution.
- Since:
- 1.3
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAllows the specification of a customParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter.Uses the mandatory "fixed.parallelism" configuration parameter as the desired parallelism. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Property name used to specify the fully qualified class name of theParallelExecutionConfigurationStrategy
to be used by theCUSTOM
configuration strategy.static final String
Property name of the factor used to determine the desired parallelism for theDYNAMIC
configuration strategy.static final String
Property name used to configure the maximum pool size of the underlying fork-join pool for theFIXED
configuration strategy.static final String
Property name used to determine the desired parallelism for theFIXED
configuration strategy.static final String
Property name used to disable saturation of the underlying fork-join pool for theFIXED
configuration strategy.static final String
Property name used to determine the desired configuration strategy. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy
createConfiguration
-
Enum Constant Details
-
FIXED
Uses the mandatory "fixed.parallelism" configuration parameter as the desired parallelism. -
DYNAMIC
Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter. -
CUSTOM
Allows the specification of a customParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.
-
-
Field Details
-
CONFIG_STRATEGY_PROPERTY_NAME
Property name used to determine the desired configuration strategy.Value must be one of
dynamic
,fixed
, orcustom
.- See Also:
-
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
Property name used to determine the desired parallelism for theFIXED
configuration strategy.No default value; must be an integer.
- See Also:
-
CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME
@API(status=EXPERIMENTAL, since="1.10") public static final String CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAMEProperty name used to configure the maximum pool size of the underlying fork-join pool for theFIXED
configuration strategy.Value must be an integer and greater than or equal to "fixed.parallelism"; defaults to
256 + fixed.parallelism
.- Since:
- 1.10
- See Also:
-
CONFIG_FIXED_SATURATE_PROPERTY_NAME
@API(status=EXPERIMENTAL, since="1.10") public static final String CONFIG_FIXED_SATURATE_PROPERTY_NAMEProperty name used to disable saturation of the underlying fork-join pool for theFIXED
configuration strategy.When set to
false
the underlying fork-join pool will reject additional tasks if all available workers are busy and the maximum pool-size would be exceeded.Value must either
true
orfalse
; defaults totrue
.- Since:
- 1.10
- See Also:
-
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
Property name of the factor used to determine the desired parallelism for theDYNAMIC
configuration strategy.Value must be a decimal number; defaults to
1
.- See Also:
-
CONFIG_CUSTOM_CLASS_PROPERTY_NAME
Property name used to specify the fully qualified class name of theParallelExecutionConfigurationStrategy
to be used by theCUSTOM
configuration strategy.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-