Enum DefaultParallelExecutionConfigurationStrategy
- java.lang.Object
-
- java.lang.Enum<DefaultParallelExecutionConfigurationStrategy>
-
- org.junit.platform.engine.support.hierarchical.DefaultParallelExecutionConfigurationStrategy
-
- All Implemented Interfaces:
Serializable
,Comparable<DefaultParallelExecutionConfigurationStrategy>
,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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUSTOM
Allows to specify a customParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.DYNAMIC
Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter.FIXED
Uses the mandatory "fixed.parallelism" configuration parameter as desired parallelism.
-
Field Summary
Fields Modifier and Type Field Description static String
CONFIG_CUSTOM_CLASS_PROPERTY_NAME
Property name used to specify the fully qualified class name of theParallelExecutionConfigurationStrategy
to be used by theCUSTOM
configuration strategy.static String
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
Property name of the factor used to determine the desired parallelism by theDYNAMIC
configuration strategy.static String
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
Property name used to determine the desired parallelism by theFIXED
configuration strategy.static String
CONFIG_STRATEGY_PROPERTY_NAME
Property name used to determine the desired configuration strategy.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DefaultParallelExecutionConfigurationStrategy
valueOf(String name)
Returns the enum constant of this type with the specified name.static DefaultParallelExecutionConfigurationStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy
createConfiguration
-
-
-
-
Enum Constant Detail
-
FIXED
public static final DefaultParallelExecutionConfigurationStrategy FIXED
Uses the mandatory "fixed.parallelism" configuration parameter as desired parallelism.
-
DYNAMIC
public static final DefaultParallelExecutionConfigurationStrategy DYNAMIC
Computes the desired parallelism based on the number of available processors/cores multiplied by the "dynamic.factor" configuration parameter.
-
CUSTOM
public static final DefaultParallelExecutionConfigurationStrategy CUSTOM
Allows to specify a customParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class" configuration parameter to determine the desired configuration.
-
-
Field Detail
-
CONFIG_STRATEGY_PROPERTY_NAME
public static final String CONFIG_STRATEGY_PROPERTY_NAME
Property name used to determine the desired configuration strategy.Value must be one of
dynamic
,fixed
, orcustom
.- See Also:
- Constant Field Values
-
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
public static final String CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
Property name used to determine the desired parallelism by theFIXED
configuration strategy.No default value; must be an integer.
- See Also:
FIXED
, Constant Field Values
-
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
public static final String CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
Property name of the factor used to determine the desired parallelism by theDYNAMIC
configuration strategy.Value must be a decimal number; defaults to
1
.- See Also:
DYNAMIC
, Constant Field Values
-
CONFIG_CUSTOM_CLASS_PROPERTY_NAME
@API(status=EXPERIMENTAL, since="5.3") public static final String 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:
CUSTOM
, Constant Field Values
-
-
Method Detail
-
values
public static DefaultParallelExecutionConfigurationStrategy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DefaultParallelExecutionConfigurationStrategy c : DefaultParallelExecutionConfigurationStrategy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DefaultParallelExecutionConfigurationStrategy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-