public static enum SparkAppHandle.State extends java.lang.Enum<SparkAppHandle.State>
Enum Constant and Description |
---|
CONNECTED
The application has connected to the handle.
|
FAILED
The application finished with a failed status.
|
FINISHED
The application finished with a successful status.
|
KILLED
The application was killed.
|
RUNNING
The application is running.
|
SUBMITTED
The application has been submitted to the cluster.
|
UNKNOWN
The application has not reported back yet.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isFinal()
Whether this state is a final state, meaning the application is not running anymore
once it's reached.
|
static SparkAppHandle.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SparkAppHandle.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SparkAppHandle.State UNKNOWN
public static final SparkAppHandle.State CONNECTED
public static final SparkAppHandle.State SUBMITTED
public static final SparkAppHandle.State RUNNING
public static final SparkAppHandle.State FINISHED
public static final SparkAppHandle.State FAILED
public static final SparkAppHandle.State KILLED
public static SparkAppHandle.State[] values()
for (SparkAppHandle.State c : SparkAppHandle.State.values()) System.out.println(c);
public static SparkAppHandle.State 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 nullpublic boolean isFinal()