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 StateSTARTEDState when container is started.static StateSTARTINGState when container is starting.static StateSTOPPEDState when container is stopped.static StateSTOPPED_FAILED_STARTState when a container is stopped due to its start having failed.static StateSTOPPINGState when container is stopping.static StateUNKNOWNUnknown state.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisStarted()booleanisStarting()booleanisStopped()booleanisStopping()StringtoString()
-
-
-
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
-
-