Enum Class TimelineEntityType
java.lang.Object
java.lang.Enum<TimelineEntityType>
org.apache.hadoop.yarn.api.records.timelineservice.TimelineEntityType
- All Implemented Interfaces:
Serializable,Comparable<TimelineEntityType>,Constable
Defines type of entity.
-
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 TypeMethodDescriptionbooleanisChild(TimelineEntityType type) Whether the input type can be a child of this entity.booleanisParent(TimelineEntityType type) Whether the input type can be a parent of this entity.booleanWhether the type of this entity matches the type indicated by the input argument.static TimelineEntityTypeReturns the enum constant of this class with the specified name.static TimelineEntityType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
YARN_CLUSTER
-
YARN_FLOW_RUN
-
YARN_APPLICATION
-
YARN_APPLICATION_ATTEMPT
-
YARN_CONTAINER
-
YARN_USER
-
YARN_QUEUE
-
YARN_FLOW_ACTIVITY
-
-
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
-
isParent
Whether the input type can be a parent of this entity.- Parameters:
type- entity type.- Returns:
- true, if this entity type is parent of passed entity type, false otherwise.
-
isChild
Whether the input type can be a child of this entity.- Parameters:
type- entity type.- Returns:
- true, if this entity type is child of passed entity type, false otherwise.
-
matches
Whether the type of this entity matches the type indicated by the input argument.- Parameters:
typeString- entity type represented as a string.- Returns:
- true, if string representation of this entity type matches the entity type passed.
-