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=STABLE, since="1.10") public enum DefaultParallelExecutionConfigurationStrategy extends Enum<DefaultParallelExecutionConfigurationStrategy> implements ParallelExecutionConfigurationStrategy
Default implementations of configuration strategies for parallel test execution.
Since:
1.3
  • Enum Constant Details

  • Field Details

    • 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, or custom.

      See Also:
    • CONFIG_FIXED_PARALLELISM_PROPERTY_NAME

      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:
    • CONFIG_FIXED_MAX_POOL_SIZE_PROPERTY_NAME

      @API(status=EXPERIMENTAL, since="1.10") 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.

      Since:
      1.10
      See Also:
    • CONFIG_FIXED_SATURATE_PROPERTY_NAME

      @API(status=EXPERIMENTAL, since="1.10") 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.

      Since:
      1.10
      See Also:
    • 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 for the DYNAMIC configuration strategy.

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

      See Also:
    • CONFIG_DYNAMIC_MAX_POOL_SIZE_FACTOR_PROPERTY_NAME

      @API(status=EXPERIMENTAL, since="1.10") 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.

      Since:
      1.10
      See Also:
    • CONFIG_DYNAMIC_SATURATE_PROPERTY_NAME

      @API(status=EXPERIMENTAL, since="1.10") 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.

      Since:
      1.10
      See Also:
    • CONFIG_CUSTOM_CLASS_PROPERTY_NAME

      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:
  • 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 name
      NullPointerException - if the argument is null