public static enum Module.State extends Enum<Module.State>
| Enum Constant and Description |
|---|
FAILED_STARTUP
Module is eligible to have releaseState() called, which is the only eligible method.
|
IN_INIT
This state applies if and only if the initModule() method is currently executing.
|
IN_RUN
This state applies if and only if the run() method is currently executing.
|
IN_START
This state applies if and only if the start() method is currently executing.
|
IN_STOP
This state applies if and only if the stop() method is currently executing.
|
POST_STOP
Module is eligible to have releaseState() called, which is the only eligible method.
|
PRE_INIT
This state applies if and only if no "action" methods of the Module interface have yet been called on this object.
|
WAIT_TO_RUN_OR_STOP
Allowed xitions out = {IN_RUN or IN_STOP}
|
WAIT_TO_START
First state the module must reliably return.
|
| Modifier and Type | Method and Description |
|---|---|
static Module.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Module.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Module.State PRE_INIT
public static final Module.State IN_INIT
public static final Module.State WAIT_TO_START
public static final Module.State IN_START
public static final Module.State WAIT_TO_RUN_OR_STOP
public static final Module.State IN_RUN
public static final Module.State IN_STOP
public static final Module.State POST_STOP
public static final Module.State FAILED_STARTUP
public static Module.State[] values()
for (Module.State c : Module.State.values()) System.out.println(c);
public static Module.State 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 nullCopyright © 2010-2015. All Rights Reserved.