Package org.apache.spark.launcher
Enum Class SparkAppHandle.State
- All Implemented Interfaces:
Serializable
,Comparable<SparkAppHandle.State>
,Constable
- Enclosing interface:
- SparkAppHandle
Represents the application's state. A state can be "final", in which case it will not change
after it's reached, and means the application is not running anymore.
- Since:
- 1.6.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe application has connected to the handle.The application finished with a failed status.The application finished with a successful status.The application was killed.The Spark Submit JVM exited with a unknown status.The application is running.The application has been submitted to the cluster.The application has not reported back yet. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isFinal()
Whether this state is a final state, meaning the application is not running anymore once it's reached.static SparkAppHandle.State
Returns the enum constant of this class with the specified name.static SparkAppHandle.State[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
UNKNOWN
The application has not reported back yet. -
CONNECTED
The application has connected to the handle. -
SUBMITTED
The application has been submitted to the cluster. -
RUNNING
The application is running. -
FINISHED
The application finished with a successful status. -
FAILED
The application finished with a failed status. -
KILLED
The application was killed. -
LOST
The Spark Submit JVM exited with a unknown status.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isFinal
public boolean isFinal()Whether this state is a final state, meaning the application is not running anymore once it's reached.
-