Enum Class AbstractResourceUsage.ResourceType
java.lang.Object
java.lang.Enum<AbstractResourceUsage.ResourceType>
org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractResourceUsage.ResourceType
- All Implemented Interfaces:
Serializable,Comparable<AbstractResourceUsage.ResourceType>,Constable
- Enclosing class:
- AbstractResourceUsage
public static enum AbstractResourceUsage.ResourceType
extends Enum<AbstractResourceUsage.ResourceType>
Use enum here to make implementation more cleaner and readable. Indicates
array index for each resource usage type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AbstractResourceUsage.ResourceType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USED
-
PENDING
-
AMUSED
-
RESERVED
-
CACHED_USED
-
CACHED_PENDING
-
AMLIMIT
-
MIN_RESOURCE
-
MAX_RESOURCE
-
EFF_MIN_RESOURCE
-
EFF_MAX_RESOURCE
-
USERAMLIMIT
-
-
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
-