org.apache.hadoop.yarn.server.nodemanager
Enum CMgrCompletedAppsEvent.Reason
java.lang.Object
java.lang.Enum<CMgrCompletedAppsEvent.Reason>
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>
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
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.