org.apache.tez.dag.app.dag.event
Enum TaskEventType
java.lang.Object
java.lang.Enum<TaskEventType>
org.apache.tez.dag.app.dag.event.TaskEventType
- All Implemented Interfaces:
- Serializable, Comparable<TaskEventType>
public enum TaskEventType
- extends Enum<TaskEventType>
Event types handled by Task.
|
Method Summary |
static TaskEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TaskEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
T_TERMINATE
public static final TaskEventType T_TERMINATE
T_SCHEDULE
public static final TaskEventType T_SCHEDULE
T_ADD_SPEC_ATTEMPT
public static final TaskEventType T_ADD_SPEC_ATTEMPT
T_ADD_TEZ_EVENT
public static final TaskEventType T_ADD_TEZ_EVENT
T_ATTEMPT_LAUNCHED
public static final TaskEventType T_ATTEMPT_LAUNCHED
T_ATTEMPT_OUTPUT_CONSUMABLE
public static final TaskEventType T_ATTEMPT_OUTPUT_CONSUMABLE
T_ATTEMPT_FAILED
public static final TaskEventType T_ATTEMPT_FAILED
T_ATTEMPT_SUCCEEDED
public static final TaskEventType T_ATTEMPT_SUCCEEDED
T_ATTEMPT_KILLED
public static final TaskEventType T_ATTEMPT_KILLED
T_RECOVER
public static final TaskEventType T_RECOVER
values
public static TaskEventType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TaskEventType c : TaskEventType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TaskEventType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2014 Apache Software Foundation. All rights reserved.