org.apache.oozie.workflow
Enum WorkflowInstance.Status

java.lang.Object
  extended by java.lang.Enum<WorkflowInstance.Status>
      extended by org.apache.oozie.workflow.WorkflowInstance.Status
All Implemented Interfaces:
Serializable, Comparable<WorkflowInstance.Status>
Enclosing interface:
WorkflowInstance

public static enum WorkflowInstance.Status
extends Enum<WorkflowInstance.Status>

Defines the possible stati of a WorkflowInstance.


Enum Constant Summary
FAILED
           
KILLED
           
PREP
           
RUNNING
           
SUCCEEDED
           
SUSPENDED
           
 
Method Summary
 boolean isEndState()
          Return if the status if an end state (it cannot change anymore).
static WorkflowInstance.Status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static WorkflowInstance.Status[] 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

PREP

public static final WorkflowInstance.Status PREP

RUNNING

public static final WorkflowInstance.Status RUNNING

SUSPENDED

public static final WorkflowInstance.Status SUSPENDED

SUCCEEDED

public static final WorkflowInstance.Status SUCCEEDED

FAILED

public static final WorkflowInstance.Status FAILED

KILLED

public static final WorkflowInstance.Status KILLED
Method Detail

values

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

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

valueOf

public static WorkflowInstance.Status 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

isEndState

public boolean isEndState()
Return if the status if an end state (it cannot change anymore).

Returns:
if the status if an end state (it cannot change anymore).


Copyright © 2012 Apache Software Foundation. All Rights Reserved.