@API(status=EXPERIMENTAL, since="1.3") public enum DefaultParallelExecutionConfigurationStrategy extends java.lang.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 java.lang.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 java.lang.String |
CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
Property name of the factor used to determine the desired parallelism for the
DYNAMIC configuration strategy. |
static java.lang.String |
CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
Property name used to determine the desired parallelism for the
FIXED configuration strategy. |
static java.lang.String |
CONFIG_STRATEGY_PROPERTY_NAME
Property name used to determine the desired configuration strategy.
|
private static int |
KEEP_ALIVE_SECONDS |
Modifier and Type | Method and Description |
---|---|
(package private) static ParallelExecutionConfigurationStrategy |
getStrategy(ConfigurationParameters configurationParameters) |
static DefaultParallelExecutionConfigurationStrategy |
valueOf(java.lang.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.private static final int KEEP_ALIVE_SECONDS
public static final java.lang.String CONFIG_STRATEGY_PROPERTY_NAME
Value must be one of dynamic
, fixed
, or
custom
.
public static final java.lang.String CONFIG_FIXED_PARALLELISM_PROPERTY_NAME
FIXED
configuration strategy.
No default value; must be an integer.
FIXED
,
Constant Field Valuespublic static final java.lang.String CONFIG_DYNAMIC_FACTOR_PROPERTY_NAME
DYNAMIC
configuration strategy.
Value must be a decimal number; defaults to 1
.
DYNAMIC
,
Constant Field Valuespublic static final java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullstatic ParallelExecutionConfigurationStrategy getStrategy(ConfigurationParameters configurationParameters)