Enum Class DeSelectFields.DeSelectType
java.lang.Object
java.lang.Enum<DeSelectFields.DeSelectType>
org.apache.hadoop.yarn.server.resourcemanager.webapp.DeSelectFields.DeSelectType
- All Implemented Interfaces:
Serializable,Comparable<DeSelectFields.DeSelectType>,Constable
- Enclosing class:
- DeSelectFields
Deselect field type, can be boosted in the future.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRESOURCE_REQUESTSis the first supported type from YARN-6280.APP_TIMEOUTS, APP_NODE_LABEL_EXPRESSION, AM_NODE_LABEL_EXPRESSION, RESOURCE_INFOare additionally supported parameters added in YARN-6871. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeSelectFields.DeSelectTypeobtainType(String literals) Obtain theDeSelectTypeby the literals given behinddeSelectsin URL.toString()use literals as toString.static DeSelectFields.DeSelectTypeReturns the enum constant of this class with the specified name.static DeSelectFields.DeSelectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RESOURCE_REQUESTS
RESOURCE_REQUESTSis the first supported type from YARN-6280. -
TIMEOUTS
APP_TIMEOUTS, APP_NODE_LABEL_EXPRESSION, AM_NODE_LABEL_EXPRESSION, RESOURCE_INFOare additionally supported parameters added in YARN-6871. -
APP_NODE_LABEL_EXPRESSION
-
AM_NODE_LABEL_EXPRESSION
-
RESOURCE_INFO
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
use literals as toString.- Overrides:
toStringin classEnum<DeSelectFields.DeSelectType>- Returns:
- the literals of this type.
-
obtainType
Obtain theDeSelectTypeby the literals given behinddeSelectsin URL.
e.g: deSelects="resourceRequests"- Parameters:
literals- e.g: resourceRequests- Returns:
DeSelectTypee.g: DeSelectType.RESOURCE_REQUESTS
-