Enum Class ServerStatusEnum

java.lang.Object
java.lang.Enum<ServerStatusEnum>
com.bytedesk.core.server.ServerStatusEnum
All Implemented Interfaces:
Serializable, Comparable<ServerStatusEnum>, Constable

public enum ServerStatusEnum extends Enum<ServerStatusEnum>
Server status enumeration Defines different statuses of servers
  • Enum Constant Details

  • Constructor Details

    • ServerStatusEnum

      private ServerStatusEnum()
  • Method Details

    • values

      public static ServerStatusEnum[] 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 ServerStatusEnum 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
    • getChineseName

      public String getChineseName()
      Get Chinese name for the server status
      Returns:
      Chinese name
    • isHealthy

      public boolean isHealthy()
      Check if server is healthy (online and not in error/warning states)
      Returns:
      true if healthy
    • isOperational

      public boolean isOperational()
      Check if server is operational (can serve requests)
      Returns:
      true if operational
    • fromValue

      public static ServerStatusEnum fromValue(String value)
      Convert from string value to enum
      Parameters:
      value - string value
      Returns:
      ServerStatusEnum