Serializable
, Comparable<EurekaServiceStatus>
public enum EurekaServiceStatus extends Enum<EurekaServiceStatus>
EurekaServiceStatus
enumerates the known Eureka service states as
of "https://github.com/Netflix/eureka/wiki/Eureka-REST-operations".Enum Constant | Description |
---|---|
DOWN |
|
OUT_OF_SERVICE |
|
STARTING |
|
UNKNOWN |
|
UP |
Modifier and Type | Method | Description |
---|---|---|
static EurekaServiceStatus |
toStatus(String aStatusName) |
Retrieves the
EurekaServiceStatus from the provided status' name,
ignoring the case. |
static EurekaServiceStatus |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static EurekaServiceStatus[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EurekaServiceStatus STARTING
public static final EurekaServiceStatus UP
public static final EurekaServiceStatus DOWN
public static final EurekaServiceStatus OUT_OF_SERVICE
public static final EurekaServiceStatus UNKNOWN
public static EurekaServiceStatus[] values()
for (EurekaServiceStatus c : EurekaServiceStatus.values()) System.out.println(c);
public static EurekaServiceStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static EurekaServiceStatus toStatus(String aStatusName)
EurekaServiceStatus
from the provided status' name,
ignoring the case.aStatusName
- The name for which to resolve the
EurekaServiceStatus
.Copyright © 2018. All rights reserved.