Class State


  • public final class State
    extends Object
    Represent the container states (started, starting, stopped, etc).
    • 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()
        Overrides:
        toString in class Object
        Returns:
        the textual representation of the state
      • 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