Enum ServerState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AVAILABLE
      The server has sent the available command back to the HostController
      BOOTING
      HostController has told the process controller to start the server and is waiting for the SERVER_AVAILABLE message back from the server
      FAILED
      We have received the SERVER_START_FAILED message
      MAX_FAILED
      We have tried to restart the server several times and received the SERVER_START_FAILED message more times than defined in the max respawn policy
      STARTED
      The server sent back the SERVER_STARTED message and is up and running
      STARTING
      HostController has received the SERVER_AVAILABLE message from the server process, has sent the config to the server and is waiting for the SERVER_STARTED or SERVER_FAILED message
      STOPPED
      We have received the SERVER_STOPPED message
      STOPPING
      HostController has told the server to stop and is waiting for the SERVER_STOPPED message
    • Enum Constant Detail

      • BOOTING

        public static final ServerState BOOTING
        HostController has told the process controller to start the server and is waiting for the SERVER_AVAILABLE message back from the server
      • AVAILABLE

        public static final ServerState AVAILABLE
        The server has sent the available command back to the HostController
      • STARTING

        public static final ServerState STARTING
        HostController has received the SERVER_AVAILABLE message from the server process, has sent the config to the server and is waiting for the SERVER_STARTED or SERVER_FAILED message
      • STARTED

        public static final ServerState STARTED
        The server sent back the SERVER_STARTED message and is up and running
      • STOPPING

        public static final ServerState STOPPING
        HostController has told the server to stop and is waiting for the SERVER_STOPPED message
      • STOPPED

        public static final ServerState STOPPED
        We have received the SERVER_STOPPED message
      • FAILED

        public static final ServerState FAILED
        We have received the SERVER_START_FAILED message
      • MAX_FAILED

        public static final ServerState MAX_FAILED
        We have tried to restart the server several times and received the SERVER_START_FAILED message more times than defined in the max respawn policy
    • Method Detail

      • values

        public static ServerState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ServerState c : ServerState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerState valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • isRestartOnReconnect

        public boolean isRestartOnReconnect()