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
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
-
STARTED
public static final State STARTED
State when container is started.
-
STOPPED
public static final State STOPPED
State when container is stopped.
-
STARTING
public static final State STARTING
State when container is starting.
-
STOPPING
public static final State STOPPING
State when container is stopping.
-
UNKNOWN
public static final State UNKNOWN
Unknown state.
-
-
Method Detail
-
toString
public String toString()
-
isStarted
public boolean isStarted()
- Returns:
- true if the container is started
-
isStopped
public boolean isStopped()
- Returns:
- true if the container is stopped
-
isStarting
public boolean isStarting()
- Returns:
- true if the container is starting
-
isStopping
public boolean isStopping()
- Returns:
- true if the container is stopping
-
-