Enum Class IServer.State

java.lang.Object
java.lang.Enum<IServer.State>
com.iizix.server.IServer.State
All Implemented Interfaces:
Serializable, Comparable<IServer.State>, Constable
Enclosing interface:
IServer

public static enum IServer.State extends Enum<IServer.State>
States of the server.
  • Enum Constant Details

    • NOT_STARTED

      public static final IServer.State NOT_STARTED
      Server has not been started yet.
    • STARTING

      public static final IServer.State STARTING
      Server is starting.
    • STARTED

      public static final IServer.State STARTED
      Server has started and is up and running.
    • STOPPING

      public static final IServer.State STOPPING
      Server is stopping or shutting down.
    • STOPPED

      public static final IServer.State STOPPED
      Server has stopped or is shut-down.
  • Method Details

    • values

      public static IServer.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IServer.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null