org.apache.oozie.action
Enum ActionExecutorException.ErrorType

java.lang.Object
  extended by java.lang.Enum<ActionExecutorException.ErrorType>
      extended by org.apache.oozie.action.ActionExecutorException.ErrorType
All Implemented Interfaces:
Serializable, Comparable<ActionExecutorException.ErrorType>
Enclosing class:
ActionExecutorException

public static enum ActionExecutorException.ErrorType
extends Enum<ActionExecutorException.ErrorType>

Enum that defines the type of error an ActionExecutor has produced.


Enum Constant Summary
ERROR
          The action completes with an error transition.
FAILED
          The action fails.
NON_TRANSIENT
          The job in set in SUSPEND mode and it will wait for an admin to resume the job.
TRANSIENT
          The action will be automatically retried by Oozie.
 
Method Summary
static ActionExecutorException.ErrorType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ActionExecutorException.ErrorType[] 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

TRANSIENT

public static final ActionExecutorException.ErrorType TRANSIENT
The action will be automatically retried by Oozie.


NON_TRANSIENT

public static final ActionExecutorException.ErrorType NON_TRANSIENT
The job in set in SUSPEND mode and it will wait for an admin to resume the job.


ERROR

public static final ActionExecutorException.ErrorType ERROR
The action completes with an error transition.


FAILED

public static final ActionExecutorException.ErrorType FAILED
The action fails. No transition is taken.

Method Detail

values

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

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

valueOf

public static ActionExecutorException.ErrorType 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 © 2012 Apache Software Foundation. All Rights Reserved.