public enum BalancerStatus extends Enum<BalancerStatus>
| Enum Constant and Description |
|---|
BOOTSTRAPPINGThe initial state of balancer component during which a request for balancer is received from the controller. |
DISABLEDThe state at which the balancer component is disabled. |
ENABLEDThe state at which is cruise control is running. |
ERRORThe state at which the balancer component is not able to start because JBOD is enabled or metrics collection is disabled, some other misconfiguration or cruise control hit some error. |
FAILOVERThe terminal state at which the balancer component is shutting down, this can occur due to controller failover. |
LOAD_FAILUREStatus when SBC class cannot be loaded (maybe because of missing classes or classpath issues) |
STARTINGThe state at which the cruise control instance is being initialized. |
UNKNOWNClients will fall back to this status when they receive an unrecognized status value. |
| Modifier and Type | Method and Description |
|---|---|
static BalancerStatus | toEnum(String name) |
static BalancerStatus | valueOf(String name)Returns the enum constant of this type with the specified name. |
static BalancerStatus[] | values()Returns an array containing the constants of this enum type, in the order they are declared. |
public static final BalancerStatus BOOTSTRAPPING
public static final BalancerStatus STARTING
public static final BalancerStatus ENABLED
public static final BalancerStatus DISABLED
public static final BalancerStatus LOAD_FAILURE
public static final BalancerStatus ERROR
public static final BalancerStatus FAILOVER
public static final BalancerStatus UNKNOWN
public static BalancerStatus[] values()
for (BalancerStatus c : BalancerStatus.values()) System.out.println(c);
public static BalancerStatus 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 BalancerStatus toEnum(String name)