public static enum SparkAppHandle.State extends 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.
|
LOST
The Spark Submit JVM exited with a unknown status.
|
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(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 final SparkAppHandle.State LOST
public static SparkAppHandle.State[] values()
for (SparkAppHandle.State c : SparkAppHandle.State.values()) System.out.println(c);
public static SparkAppHandle.State 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 boolean isFinal()