@InterfaceAudience.Public @InterfaceStability.Unstable public enum AMCommand extends Enum<AMCommand>
AllocateResponse
Enum Constant and Description |
---|
AM_RESYNC
Deprecated.
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,
ApplicationMasterNotRegisteredException will be thrown
when ApplicationMaster is out of sync with ResourceManager and
ApplicationMaster is expected to re-register with RM by calling
ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest) |
AM_SHUTDOWN
Deprecated.
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
ApplicationAttemptNotFoundException will be thrown in case
that RM has restarted and AM is supposed to handle this
exception by shutting down itself. |
Modifier and Type | Method and Description |
---|---|
static AMCommand |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AMCommand[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AMCommand AM_RESYNC
ApplicationMasterNotRegisteredException
will be thrown
when ApplicationMaster is out of sync with ResourceManager and
ApplicationMaster is expected to re-register with RM by calling
ApplicationMasterProtocol.registerApplicationMaster(RegisterApplicationMasterRequest)
public static final AMCommand AM_SHUTDOWN
ApplicationAttemptNotFoundException
will 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 nameNullPointerException
- if the argument is nullCopyright © 2015 Apache Software Foundation. All Rights Reserved.