org.apache.hadoop.yarn.server.nodemanager
Enum CMgrCompletedAppsEvent.Reason

java.lang.Object
  extended by java.lang.Enum<CMgrCompletedAppsEvent.Reason>
      extended by org.apache.hadoop.yarn.server.nodemanager.CMgrCompletedAppsEvent.Reason
All Implemented Interfaces:
Serializable, Comparable<CMgrCompletedAppsEvent.Reason>
Enclosing class:
CMgrCompletedAppsEvent

public static enum CMgrCompletedAppsEvent.Reason
extends Enum<CMgrCompletedAppsEvent.Reason>


Enum Constant Summary
BY_RESOURCEMANAGER
          Application is killed by ResourceManager
ON_SHUTDOWN
          Application is killed as NodeManager is shut down
 
Method Summary
static CMgrCompletedAppsEvent.Reason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static CMgrCompletedAppsEvent.Reason[] 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

ON_SHUTDOWN

public static final CMgrCompletedAppsEvent.Reason ON_SHUTDOWN
Application is killed as NodeManager is shut down


BY_RESOURCEMANAGER

public static final CMgrCompletedAppsEvent.Reason BY_RESOURCEMANAGER
Application is killed by ResourceManager

Method Detail

values

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

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

valueOf

public static CMgrCompletedAppsEvent.Reason 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.