Enum ServerStatus

    • Enum Constant Detail

      • DISABLED

        public static final ServerStatus DISABLED
        The server is disabled; i.e. configured not to start automatically
      • STARTING

        public static final ServerStatus STARTING
        The server is starting
      • STARTED

        public static final ServerStatus STARTED
        The server is started
      • STOPPING

        public static final ServerStatus STOPPING
        The server is stopping
      • STOPPED

        public static final ServerStatus STOPPED
        The server is stopped
      • FAILED

        public static final ServerStatus FAILED
        The server failed to start
      • UNKNOWN

        public static final ServerStatus UNKNOWN
        The status of the server is currently unknown. This is the status of any server whose host controller is currently unreachable.
      • DOES_NOT_EXIST

        public static final ServerStatus DOES_NOT_EXIST
        Status indicating the host controller does not recognize the server name
    • Method Detail

      • values

        public static ServerStatus[] 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 (ServerStatus c : ServerStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ServerStatus 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