public static enum TaskManagerOptions.TaskManagerLoadBalanceMode extends Enum<TaskManagerOptions.TaskManagerLoadBalanceMode>
Modifier and Type | Method and Description |
---|---|
static TaskManagerOptions.TaskManagerLoadBalanceMode |
loadFromConfiguration(Configuration configuration)
The method is mainly to load the
TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE from Configuration , which is
compatible with ClusterOptions.EVENLY_SPREAD_OUT_SLOTS_STRATEGY . |
static TaskManagerOptions.TaskManagerLoadBalanceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskManagerOptions.TaskManagerLoadBalanceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaskManagerOptions.TaskManagerLoadBalanceMode NONE
public static final TaskManagerOptions.TaskManagerLoadBalanceMode SLOTS
public static TaskManagerOptions.TaskManagerLoadBalanceMode[] values()
for (TaskManagerOptions.TaskManagerLoadBalanceMode c : TaskManagerOptions.TaskManagerLoadBalanceMode.values()) System.out.println(c);
public static TaskManagerOptions.TaskManagerLoadBalanceMode 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 nullpublic static TaskManagerOptions.TaskManagerLoadBalanceMode loadFromConfiguration(@Nonnull Configuration configuration)
TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE
from Configuration
, which is
compatible with ClusterOptions.EVENLY_SPREAD_OUT_SLOTS_STRATEGY
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.