org.apache.tez.dag.app.dag
Enum DAGTerminationCause

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

public enum DAGTerminationCause
extends Enum<DAGTerminationCause>

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


Enum Constant Summary
COMMIT_FAILURE
          DAG failed during output commit.
DAG_KILL
          DAG was directly killed.
INIT_FAILURE
          DAG failed during init.
INTERNAL_ERROR
           
RECOVERY_FAILURE
          DAG failed while trying to write recovery events
VERTEX_FAILURE
          A vertex failed.
ZERO_VERTICES
          DAG failed due as it had zero vertices.
 
Method Summary
static DAGTerminationCause valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DAGTerminationCause[] 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 DAGTerminationCause DAG_KILL
DAG was directly killed.


VERTEX_FAILURE

public static final DAGTerminationCause VERTEX_FAILURE
A vertex failed.


ZERO_VERTICES

public static final DAGTerminationCause ZERO_VERTICES
DAG failed due as it had zero vertices.


INIT_FAILURE

public static final DAGTerminationCause INIT_FAILURE
DAG failed during init.


COMMIT_FAILURE

public static final DAGTerminationCause COMMIT_FAILURE
DAG failed during output commit.


RECOVERY_FAILURE

public static final DAGTerminationCause RECOVERY_FAILURE
DAG failed while trying to write recovery events


INTERNAL_ERROR

public static final DAGTerminationCause INTERNAL_ERROR
Method Detail

values

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

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

valueOf

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