Package org.codehaus.cargo.container
Class State
- java.lang.Object
-
- org.codehaus.cargo.container.State
-
public final class State extends Object
Represent the container states (started, starting, stopped, etc).
-
-
Field Summary
Fields Modifier and Type Field Description static State
STARTED
State when container is started.static State
STARTING
State when container is starting.static State
STOPPED
State when container is stopped.static State
STOPPED_FAILED_START
State when a container is stopped due to its start having failed.static State
STOPPING
State when container is stopping.static State
UNKNOWN
Unknown state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isStarted()
boolean
isStarting()
boolean
isStopped()
boolean
isStopping()
String
toString()
-
-
-
Field Detail
-
STARTING
public static final State STARTING
State when container is starting.
-
STARTED
public static final State STARTED
State when container is started.
-
STOPPED_FAILED_START
public static final State STOPPED_FAILED_START
State when a container is stopped due to its start having failed.
-
STOPPING
public static final State STOPPING
State when container is stopping.
-
STOPPED
public static final State STOPPED
State when container is stopped.
-
UNKNOWN
public static final State UNKNOWN
Unknown state.
-
-
Method Detail
-
toString
public String toString()
-
isStarting
public boolean isStarting()
- Returns:
- true if the container is starting
-
isStarted
public boolean isStarted()
- Returns:
- true if the container is started
-
isStopping
public boolean isStopping()
- Returns:
- true if the container is stopping
-
isStopped
public boolean isStopped()
- Returns:
- true if the container is stopped
-
-