Enum EurekaServiceStatus

java.lang.Object
java.lang.Enum<EurekaServiceStatus>
org.refcodes.rest.ext.eureka.EurekaServiceStatus
All Implemented Interfaces:
Serializable, Comparable<EurekaServiceStatus>, java.lang.constant.Constable

public enum EurekaServiceStatus extends Enum<EurekaServiceStatus>
The EurekaServiceStatus enumerates the known Eureka service states as of "https://github.com/Netflix/eureka/wiki/Eureka-REST-operations".
  • Enum Constant Details

  • Method Details

    • values

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

      public static EurekaServiceStatus 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
    • toStatus

      public static EurekaServiceStatus toStatus(String aStatusName)
      Retrieves the EurekaServiceStatus from the provided status' name, ignoring the case.
      Parameters:
      aStatusName - The name for which to resolve the EurekaServiceStatus.
      Returns:
      The resolved status or null if the name was not resolvable.