org.apache.hadoop.mapreduce.v2.app.job.event
Enum TaskEventType

java.lang.Object
  extended by java.lang.Enum<TaskEventType>
      extended by org.apache.hadoop.mapreduce.v2.app.job.event.TaskEventType
All Implemented Interfaces:
Serializable, Comparable<TaskEventType>

public enum TaskEventType
extends Enum<TaskEventType>

Event types handled by Task.


Enum Constant Summary
T_ADD_SPEC_ATTEMPT
           
T_ATTEMPT_COMMIT_PENDING
           
T_ATTEMPT_FAILED
           
T_ATTEMPT_KILLED
           
T_ATTEMPT_LAUNCHED
           
T_ATTEMPT_SUCCEEDED
           
T_KILL
           
T_RECOVER
           
T_SCHEDULE
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

T_KILL

public static final TaskEventType T_KILL

T_SCHEDULE

public static final TaskEventType T_SCHEDULE

T_RECOVER

public static final TaskEventType T_RECOVER

T_ADD_SPEC_ATTEMPT

public static final TaskEventType T_ADD_SPEC_ATTEMPT

T_ATTEMPT_LAUNCHED

public static final TaskEventType T_ATTEMPT_LAUNCHED

T_ATTEMPT_COMMIT_PENDING

public static final TaskEventType T_ATTEMPT_COMMIT_PENDING

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
Method Detail

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.