java.io.Serializable, java.lang.Comparable<AMCommand>@Public @Unstable public enum AMCommand extends java.lang.Enum<AMCommand>
AllocateResponse| Enum Constant | 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.
|
AM_SHUTDOWN |
Deprecated.
Sent by Resource Manager when it wants the AM to shutdown.
|
| Modifier and Type | Method | Description |
|---|---|---|
static AMCommand |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullCopyright © 2008–2025 Apache Software Foundation. All rights reserved.