public enum SparkJobStatus extends Enum<SparkJobStatus>
Enum Constant and Description |
---|
BUSY |
DEAD |
ERROR |
IDLE |
NOT_STARTED |
RUNNING |
SHUTTING_DOWN |
STARTING |
SUCCESS |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static SparkJobStatus |
fromName(String name) |
String |
getName() |
int |
getValue() |
static SparkJobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SparkJobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SparkJobStatus NOT_STARTED
public static final SparkJobStatus STARTING
public static final SparkJobStatus IDLE
public static final SparkJobStatus BUSY
public static final SparkJobStatus RUNNING
public static final SparkJobStatus SHUTTING_DOWN
public static final SparkJobStatus ERROR
public static final SparkJobStatus DEAD
public static final SparkJobStatus SUCCESS
public static final SparkJobStatus UNKNOWN
public static SparkJobStatus[] values()
for (SparkJobStatus c : SparkJobStatus.values()) System.out.println(c);
public static SparkJobStatus 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 String getName()
public int getValue()
public static SparkJobStatus fromName(String name)
Copyright © 2023. All rights reserved.