@API(status=EXPERIMENTAL, since="1.3") public enum DefaultParallelExecutionConfigurationStrategy extends Enum<DefaultParallelExecutionConfigurationStrategy> implements ParallelExecutionConfigurationStrategy
Enum Constant and Description |
---|
CUSTOM
Allows the specification of a custom
ParallelExecutionConfigurationStrategy
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 the desired parallelism.
|
Modifier and Type | Field and Description |
---|---|
static 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. |
static String |
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
Property name of the factor used to determine the desired parallelism for the
DYNAMIC configuration strategy. |
static String |
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
Property name used to determine the desired parallelism for the
FIXED configuration strategy. |
static String |
CONFIG_STRATEGY_PROPERTY_NAME
Property name used to determine the desired configuration strategy.
|
Modifier and Type | Method and 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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
createConfiguration
public static final DefaultParallelExecutionConfigurationStrategy FIXED
public static final DefaultParallelExecutionConfigurationStrategy DYNAMIC
public static final DefaultParallelExecutionConfigurationStrategy CUSTOM
ParallelExecutionConfigurationStrategy
implementation via the mandatory "custom.class"
configuration parameter to determine the desired configuration.public static final String CONFIG_STRATEGY_PROPERTY_NAME
Value must be one of dynamic
, fixed
, or
custom
.
public static final String CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
FIXED
configuration strategy.
No default value; must be an integer.
FIXED
,
Constant Field Valuespublic static final String CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
DYNAMIC
configuration strategy.
Value must be a decimal number; defaults to 1
.
DYNAMIC
,
Constant Field Valuespublic static final String CONFIG_CUSTOM_CLASS_PROPERTY_NAME
ParallelExecutionConfigurationStrategy
to be used by the
CUSTOM
configuration strategy.CUSTOM
,
Constant Field Valuespublic static DefaultParallelExecutionConfigurationStrategy[] values()
for (DefaultParallelExecutionConfigurationStrategy c : DefaultParallelExecutionConfigurationStrategy.values()) System.out.println(c);
public static DefaultParallelExecutionConfigurationStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2024. All rights reserved.