@Deprecated public enum State extends Enum<State>
STOPPED -> STARTING -> RUNNING -> STOPPING -> STOPPED
If something bad happens, the bridge can get in state FAILURE.| Enum Constant and Description |
|---|
FAILURE
Deprecated.
The bridge is in failure state.
|
RUNNING
Deprecated.
The bridge is up and running
|
STARTING
Deprecated.
The bridge is starting and will be available soon
|
STOPPED
Deprecated.
The bridge is stopped at the moment
|
STOPPING
Deprecated.
The bridge is stopping at the moment and will be shutdown soon
|
| Modifier and Type | Method and Description |
|---|---|
static State |
valueOf(String name)
Deprecated.
Returns the enum constant of this type with the specified name.
|
static State[] |
values()
Deprecated.
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final State STOPPED
public static final State STARTING
public static final State RUNNING
public static final State FAILURE
public static final State STOPPING
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static 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 © 2013-2018 dc-square GmbH. All Rights Reserved.