public enum ContainerOutcome extends Enum<ContainerOutcome>
ContainerExitStatus -and hopefully able to handle
any new exit codes.| Enum Constant and Description |
|---|
Completed |
Failed |
Failed_limits_exceeded |
Node_failure |
Preempted |
| Modifier and Type | Method and Description |
|---|---|
static ContainerOutcome |
fromExitStatus(int exitStatus)
Build a container outcome from an exit status.
|
static ContainerOutcome |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ContainerOutcome[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ContainerOutcome Completed
public static final ContainerOutcome Failed
public static final ContainerOutcome Failed_limits_exceeded
public static final ContainerOutcome Node_failure
public static final ContainerOutcome Preempted
public static ContainerOutcome[] values()
for (ContainerOutcome c : ContainerOutcome.values()) System.out.println(c);
public static ContainerOutcome 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 nullpublic static ContainerOutcome fromExitStatus(int exitStatus)
ContainerExitStatus are used
here.exitStatus - exit statusCopyright © 2014–2015 The Apache Software Foundation. All rights reserved.