public enum Locality extends Enum<Locality>
Enum Constant and Description |
---|
HOST_LOCAL
The task was scheduled onto the same host as requested
|
LOCAL
The task was scheduled into the same TaskManager as requested
|
NON_LOCAL
The task was scheduled to a destination not included in its locality preferences.
|
UNCONSTRAINED
No constraint existed on the task placement.
|
UNKNOWN
No locality information was provided, it is unknown if the locality was respected
|
Modifier and Type | Method and Description |
---|---|
static Locality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Locality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Locality UNCONSTRAINED
public static final Locality LOCAL
public static final Locality HOST_LOCAL
public static final Locality NON_LOCAL
public static final Locality UNKNOWN
public static Locality[] values()
for (Locality c : Locality.values()) System.out.println(c);
public static Locality 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 © 2014–2021 The Apache Software Foundation. All rights reserved.