public enum Status extends Enum<Status>
| Enum Constant and Description |
|---|
COMPILING
the strategy is being prepared and, if appropriate, compiled
|
FAILED
the strategy is not running because of an error
|
RUNNING
the strategy is currently running
|
STARTING
the strategy is executing
RunningStrategy.onStart() |
STOPPED
the strategy was started and running, but has been stopped
|
STOPPING
the strategy is executing
RunningStrategy.onStop() |
UNSTARTED
the strategy has been created but not yet started
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRunning()
Indicates if the strategy is currently executing.
|
static Status |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Status UNSTARTED
public static final Status COMPILING
public static final Status STARTING
RunningStrategy.onStart()public static final Status RUNNING
public static final Status STOPPING
RunningStrategy.onStop()public static final Status STOPPED
public static final Status FAILED
public static Status[] values()
for (Status c : Status.values()) System.out.println(c);
public static Status 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 isRunning()
boolean valueCopyright © 2014. All Rights Reserved.