public enum OpportunisticContainersQueuePolicy extends Enum<OpportunisticContainersQueuePolicy>
Enum Constant and Description |
---|
BY_QUEUE_LEN
Determines whether or not to run a container by the queue capacity:
YarnConfiguration.NM_OPPORTUNISTIC_CONTAINERS_MAX_QUEUE_LENGTH . |
BY_RESOURCES
Determines whether or not to run a container based on the amount of
resource capacity the node has.
|
Modifier and Type | Field and Description |
---|---|
static OpportunisticContainersQueuePolicy |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
static OpportunisticContainersQueuePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpportunisticContainersQueuePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpportunisticContainersQueuePolicy BY_QUEUE_LEN
YarnConfiguration.NM_OPPORTUNISTIC_CONTAINERS_MAX_QUEUE_LENGTH
.
If there's enough capacity in the queue,
queues the container, otherwise rejects it.public static final OpportunisticContainersQueuePolicy BY_RESOURCES
public static final OpportunisticContainersQueuePolicy DEFAULT
public static OpportunisticContainersQueuePolicy[] values()
for (OpportunisticContainersQueuePolicy c : OpportunisticContainersQueuePolicy.values()) System.out.println(c);
public static OpportunisticContainersQueuePolicy 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 © 2008–2024 Apache Software Foundation. All rights reserved.