@InterfaceAudience.Public @InterfaceStability.Unstable public enum AMCommand extends Enum<AMCommand>
|Enum Constant and Description|
Sent by Resource Manager when it is out of sync with the AM and wants the AM get back in sync. Note: Instead of sending this command,
Sent by Resource Manager when it wants the AM to shutdown. Note: This command was earlier sent by ResourceManager to instruct AM to shutdown if RM had restarted. Now
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final AMCommand AM_RESYNC
ApplicationMasterNotRegisteredExceptionwill be thrown when ApplicationMaster is out of sync with ResourceManager and ApplicationMaster is expected to re-register with RM by calling
public static final AMCommand AM_SHUTDOWN
ApplicationAttemptNotFoundExceptionwill be thrown in case that RM has restarted and AM is supposed to handle this exception by shutting down itself.
public static AMCommand values()
for (AMCommand c : AMCommand.values()) System.out.println(c);
public static AMCommand valueOf(String name)
name- the name of the enum constant to be returned.
IllegalArgumentException- if this enum type has no constant with the specified name
NullPointerException- if the argument is null
Copyright © 2017 Apache Software Foundation. All rights reserved.