org.apache.tez.dag.app.dag
Enum TaskTerminationCause

java.lang.Object
  extended by java.lang.Enum<TaskTerminationCause>
      extended by org.apache.tez.dag.app.dag.TaskTerminationCause
All Implemented Interfaces:
Serializable, Comparable<TaskTerminationCause>

public enum TaskTerminationCause
extends Enum<TaskTerminationCause>

Represents proximate cause of a Task transition to FAILED or KILLED.


Enum Constant Summary
DAG_KILL
          DAG was killed
OTHER_TASK_FAILURE
          One of the tasks for the source/destination vertex failed.
OTHER_VERTEX_FAILURE
          Other vertex failed causing DAG to fail thus killing the parent vertex
OWN_TASK_FAILURE
          One of the tasks of the destination vertex failed.
 
Method Summary
static TaskTerminationCause valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TaskTerminationCause[] 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

DAG_KILL

public static final TaskTerminationCause DAG_KILL
DAG was killed


OTHER_VERTEX_FAILURE

public static final TaskTerminationCause OTHER_VERTEX_FAILURE
Other vertex failed causing DAG to fail thus killing the parent vertex


OTHER_TASK_FAILURE

public static final TaskTerminationCause OTHER_TASK_FAILURE
One of the tasks for the source/destination vertex failed.


OWN_TASK_FAILURE

public static final TaskTerminationCause OWN_TASK_FAILURE
One of the tasks of the destination vertex failed.

Method Detail

values

public static TaskTerminationCause[] 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 (TaskTerminationCause c : TaskTerminationCause.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskTerminationCause 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.