public enum ServiceState extends Enum<ServiceState>
Machine can take on.
The service state, is the operational state of the service running on
the machine. This is different from the MachineState, which is the
execution state of the Machine as reported by the infrastructure.| Enum Constant and Description |
|---|
BOOTING
The service is being bootstrapped and may not (yet) be operational.
|
IN_SERVICE
The service is operational and ready to accept work (health checks pass).
|
OUT_OF_SERVICE
The service is unhealthy and is in need of repair.
|
UNHEALTHY
The service is not functioning properly (health checks fail).
|
UNKNOWN
The service state of the machine cannot be (or has not yet been)
determined.
|
| Modifier and Type | Method and Description |
|---|---|
static ServiceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceState UNKNOWN
public static final ServiceState BOOTING
public static final ServiceState IN_SERVICE
public static final ServiceState UNHEALTHY
public static final ServiceState OUT_OF_SERVICE
public static ServiceState[] values()
for (ServiceState c : ServiceState.values()) System.out.println(c);
public static ServiceState 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 nullCopyright © 2011–2017 Elastisys. All rights reserved.