public static enum BalancerStatusStateMachine.BalancerEvent extends Enum<BalancerStatusStateMachine.BalancerEvent> implements BalancerOperationEvent
BalancerOperationEvent
that can take place while balancer is starting up or running
There are two more events - SBK_MISCONFIGURATION_CORRECTED and SBK_ENABLED that are related
to dynamic configuration update, which will be handled separately in a follow up PR.Enum Constant and Description |
---|
BALANCER_DISABLED |
BALANCER_ENABLED |
BALANCER_MISCONFIGURED |
CONTROLLER_FAILS_OVER |
CRUISE_CONTROL_ERRORED |
CRUISE_CONTROL_INITIALIZATION_COMPLETED |
INITIALIZING_CRUISE_CONTROL |
JBOD_ENABLED |
Modifier and Type | Method and Description |
---|---|
static BalancerStatusStateMachine.BalancerEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BalancerStatusStateMachine.BalancerEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BalancerStatusStateMachine.BalancerEvent BALANCER_DISABLED
public static final BalancerStatusStateMachine.BalancerEvent BALANCER_ENABLED
public static final BalancerStatusStateMachine.BalancerEvent JBOD_ENABLED
public static final BalancerStatusStateMachine.BalancerEvent BALANCER_MISCONFIGURED
public static final BalancerStatusStateMachine.BalancerEvent CRUISE_CONTROL_ERRORED
public static final BalancerStatusStateMachine.BalancerEvent INITIALIZING_CRUISE_CONTROL
public static final BalancerStatusStateMachine.BalancerEvent CRUISE_CONTROL_INITIALIZATION_COMPLETED
public static final BalancerStatusStateMachine.BalancerEvent CONTROLLER_FAILS_OVER
public static BalancerStatusStateMachine.BalancerEvent[] values()
for (BalancerStatusStateMachine.BalancerEvent c : BalancerStatusStateMachine.BalancerEvent.values()) System.out.println(c);
public static BalancerStatusStateMachine.BalancerEvent 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 null