|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Status>
org.marketcetera.strategy.Status
public enum Status
Indicates the status of a running strategy.
| Enum Constant Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic boolean isRunning()
boolean value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||