public enum PluginState extends Enum<PluginState>
| Enum Constant and Description |
|---|
CREATED
The Task is created but not still running
|
DISCARDED
The Task has been discarded by the scheduler.
|
DONE
The Task terminated successfully
|
FAILED
The Task failed the execution
|
RUNNING
The Task is running
|
STOPPED
The Task has been stopped
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFinalState()
Return true when the state a is a final state and the job cannot move
in any other state
|
String |
toString() |
static PluginState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluginState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PluginState CREATED
public static final PluginState RUNNING
public static final PluginState STOPPED
public static final PluginState DONE
public static final PluginState FAILED
public static final PluginState DISCARDED
public static PluginState[] values()
for (PluginState c : PluginState.values()) System.out.println(c);
public static PluginState 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 isFinalState()
public String toString()
toString in class Enum<PluginState>Copyright © 2018. All Rights Reserved.