Top Description Fields Constructors Methods
org.junit.platform.engine.support.hierarchical

public sealed Enum DefaultParallelExecutionConfigurationStrategy

extends Enum<DefaultParallelExecutionConfigurationStrategy>
implements ParallelExecutionConfigurationStrategy
Class Inheritance
All Implemented Interfaces
org.junit.platform.engine.support.hierarchical.ParallelExecutionConfigurationStrategy
Annotations
@API
status:STABLE
since:1.10
Static Imports
java.util.Objects.requireNonNull, org.apiguardian.api.API.Status.MAINTAINED, .API.Status.STABLE

Default implementations of configuration strategies for parallel test execution.
Since
1.3

Field Summary

Modifier and TypeField and Description
public static final String
CONFIG_CUSTOM_CLASS_PROPERTY_NAME

Property name used to specify the fully qualified class name of the ParallelExecutionConfigurationStrategy to be used by the CUSTOM configuration strategy.

public static final String
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME

Property name of the factor used to determine the desired parallelism for the DYNAMIC configuration strategy.

public static final String
CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME

Property name of the factor used to determine the maximum pool size of the underlying fork-join pool for the DYNAMIC configuration strategy.

public static final String
CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME

Property name used to disable saturation of the underlying fork-join pool for the DYNAMIC configuration strategy.

public static final String
CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME

Property name used to configure the maximum pool size of the underlying fork-join pool for the FIXED configuration strategy.

public static final String
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME

Property name used to determine the desired parallelism for the FIXED configuration strategy.

public static final String
CONFIG_FIXED_SATURATE_PROPERTY_NAME

Property name used to disable saturation of the underlying fork-join pool for the FIXED configuration strategy.

public static final String
CONFIG_STRATEGY_PROPERTY_NAME

Property name used to determine the desired configuration strategy.

public static final DefaultParallelExecutionConfigurationStrategy
CUSTOM

Allows the specification of a custom ParallelExecutionConfigurationStrategy implementation via the mandatory custom.class configuration parameter to determine the desired configuration.

public static final DefaultParallelExecutionConfigurationStrategy
DYNAMIC

Computes the desired parallelism based on the number of available processors/cores multiplied by the dynamic.factor configuration parameter.

public static final DefaultParallelExecutionConfigurationStrategy
FIXED

Uses the mandatory fixed.parallelism configuration parameter as the desired parallelism.

private static final int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static ParallelExecutionConfigurationStrategy
getStrategy(ConfigurationParameters configurationParameters)

public static DefaultParallelExecutionConfigurationStrategy
public static DefaultParallelExecutionConfigurationStrategy[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONFIG_CUSTOM_CLASS_PROPERTY_NAMEback to summary
public static final String CONFIG_CUSTOM_CLASS_PROPERTY_NAME

Property name used to specify the fully qualified class name of the ParallelExecutionConfigurationStrategy to be used by the CUSTOM configuration strategy.

See Also
CUSTOM
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAMEback to summary
public static final String CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME

Property name of the factor used to determine the desired parallelism for the DYNAMIC configuration strategy.

Value must be a non-negative decimal number; defaults to 1.

See Also
DYNAMIC
CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAMEback to summary
public static final String CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME

Property name of the factor used to determine the maximum pool size of the underlying fork-join pool for the DYNAMIC configuration strategy.

Value must be a decimal number equal and greater than or equal to 1. When set the maximum pool size is calculated as dynamic.max-pool-size-factor * dynamic.factor * Runtime.getRuntime().availableProcessors() When not set the maximum pool size is calculated as 256 + dynamic.factor * Runtime.getRuntime().availableProcessors() instead.

Annotations
@API
status:MAINTAINED
since:1.13.3
Since
1.10
See Also
DYNAMIC
CONFIG_DYNAMIC_SATURATE_PROPERTY_NAMEback to summary
public static final String CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME

Property name used to disable saturation of the underlying fork-join pool for the DYNAMIC 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 or false; defaults to true.

Annotations
@API
status:MAINTAINED
since:1.13.3
Since
1.10
See Also
DYNAMIC, CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAMEback to summary
public static final String CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME

Property name used to configure the maximum pool size of the underlying fork-join pool for the FIXED configuration strategy.

Value must be an integer and greater than or equal to fixed.parallelism; defaults to 256 + fixed.parallelism.

Annotations
@API
status:MAINTAINED
since:1.13.3
Since
1.10
See Also
FIXED
CONFIG_FIXED_PARALLELISM_PROPERTY_NAMEback to summary
public static final String CONFIG_FIXED_PARALLELISM_PROPERTY_NAME

Property name used to determine the desired parallelism for the FIXED configuration strategy.

No default value; must be an integer.

See Also
FIXED
CONFIG_FIXED_SATURATE_PROPERTY_NAMEback to summary
public static final String CONFIG_FIXED_SATURATE_PROPERTY_NAME

Property name used to disable saturation of the underlying fork-join pool for the FIXED 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 or false; defaults to true.

Annotations
@API
status:MAINTAINED
since:1.13.3
Since
1.10
See Also
FIXED, CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME
CONFIG_STRATEGY_PROPERTY_NAMEback to summary
public static final String CONFIG_STRATEGY_PROPERTY_NAME

Property name used to determine the desired configuration strategy.

Value must be one of dynamic, fixed, or custom.

CUSTOMback to summary
public static final DefaultParallelExecutionConfigurationStrategy CUSTOM

Allows the specification of a custom ParallelExecutionConfigurationStrategy implementation via the mandatory custom.class configuration parameter to determine the desired configuration.

DYNAMICback to summary
public static final DefaultParallelExecutionConfigurationStrategy DYNAMIC

Computes the desired parallelism based on the number of available processors/cores multiplied by the dynamic.factor configuration parameter.

FIXEDback to summary
public static final DefaultParallelExecutionConfigurationStrategy FIXED

Uses the mandatory fixed.parallelism configuration parameter as the desired parallelism.

KEEP_ALIVE_SECONDSback to summary
private static final int KEEP_ALIVE_SECONDS

Constructor Detail

DefaultParallelExecutionConfigurationStrategyback to summary
private DefaultParallelExecutionConfigurationStrategy()

Method Detail

getStrategyback to summary
pack-priv static ParallelExecutionConfigurationStrategy getStrategy(ConfigurationParameters configurationParameters)
valueOfback to summary
public static DefaultParallelExecutionConfigurationStrategy valueOf(String name)
valuesback to summary
public static DefaultParallelExecutionConfigurationStrategy[] values()