@PublicAPI public enum SchedulerStatus extends Enum<SchedulerStatus> implements Serializable
Enum Constant and Description |
---|
DB_DOWN
The scheduler has been killed due to a db disconnection, nothing can be done anymore.
|
FROZEN
The scheduler is in freeze mode.
|
KILLED
The scheduler has been killed, nothing can be done anymore.
|
PAUSED
The scheduler is paused.
|
SHUTTING_DOWN
The scheduler is shutting down,
It will terminate all running jobs (during this time, get jobs results is possible),
then it will serialize every remaining jobs results that still are in the finished queue.
|
STARTED
The scheduler is running.
|
STOPPED
The scheduler is stopped.
|
UNLINKED
The scheduler is unlinked with RM,
This can be due to the crash of the resource manager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDown()
Return true if the scheduler is not currently UP
|
boolean |
isFreezable()
Return true if the scheduler is freezable in its current state
|
boolean |
isKilled()
Return true if the scheduler is killed
|
boolean |
isPausable()
Return true if the scheduler is pausable in its current state
|
boolean |
isResumable()
Return true if the scheduler is resumable in its current state
|
boolean |
isShuttingDown()
Return true if the scheduler is currently shutting down
|
boolean |
isStartable()
Return true if the scheduler is startable
|
boolean |
isStoppable()
Return true if the scheduler can be stopped in its current state.
|
boolean |
isSubmittable()
Return true if a job can be submitted to scheduler
|
boolean |
isUnusable()
Return true if the scheduler is NOT usable in its current state
|
String |
toString() |
static SchedulerStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SchedulerStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SchedulerStatus STARTED
public static final SchedulerStatus STOPPED
public static final SchedulerStatus FROZEN
public static final SchedulerStatus PAUSED
public static final SchedulerStatus SHUTTING_DOWN
public static final SchedulerStatus UNLINKED
public static final SchedulerStatus KILLED
public static final SchedulerStatus DB_DOWN
public static SchedulerStatus[] values()
for (SchedulerStatus c : SchedulerStatus.values()) System.out.println(c);
public static SchedulerStatus 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 toString()
toString
in class Enum<SchedulerStatus>
Enum.toString()
public boolean isKilled()
public boolean isShuttingDown()
public boolean isUnusable()
public boolean isDown()
public boolean isStoppable()
public boolean isStartable()
public boolean isFreezable()
public boolean isPausable()
public boolean isResumable()
public boolean isSubmittable()