public static enum BrokerRemovalStateMachine.BrokerRemovalEvent extends Enum<BrokerRemovalStateMachine.BrokerRemovalEvent> implements BalancerOperationEvent
Enum Constant and Description |
---|
BALANCER_DISABLED
When the balancer component is disabled
|
BALANCER_RESIGNED
When the balancer component resigns on this broker (presumably because the controller has bounced)
|
BROKER_RESTARTED |
BROKER_SHUTDOWN_FAILURE |
BROKER_SHUTDOWN_SUCCESS |
EXCLUSION_ADDED
When a new broker replica exclusion is detected
|
EXCLUSION_FAILURE |
EXCLUSION_REMOVAL_FAILURE |
EXCLUSION_REMOVAL_SUCCESS |
EXCLUSION_REMOVED
When a broker replica exclusion is removed (and detected)
|
EXCLUSION_SUCCESS |
INITIAL_PLAN_COMPUTATION_FAILURE |
INITIAL_PLAN_COMPUTATION_SUCCESS |
PLAN_COMPUTATION_FAILURE |
PLAN_COMPUTATION_SUCCESS |
PLAN_EXECUTION_FAILURE |
PLAN_EXECUTION_SUCCESS_NO_SHUTDOWN |
PLAN_EXECUTION_SUCCESS_WITH_SHUTDOWN |
Modifier and Type | Method and Description |
---|---|
boolean |
canCancelRemoval() |
static BrokerRemovalStateMachine.BrokerRemovalEvent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrokerRemovalStateMachine.BrokerRemovalEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BrokerRemovalStateMachine.BrokerRemovalEvent INITIAL_PLAN_COMPUTATION_SUCCESS
public static final BrokerRemovalStateMachine.BrokerRemovalEvent INITIAL_PLAN_COMPUTATION_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_SUCCESS
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent PLAN_COMPUTATION_SUCCESS
public static final BrokerRemovalStateMachine.BrokerRemovalEvent PLAN_COMPUTATION_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent PLAN_EXECUTION_SUCCESS_NO_SHUTDOWN
public static final BrokerRemovalStateMachine.BrokerRemovalEvent PLAN_EXECUTION_SUCCESS_WITH_SHUTDOWN
public static final BrokerRemovalStateMachine.BrokerRemovalEvent PLAN_EXECUTION_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent BROKER_SHUTDOWN_SUCCESS
public static final BrokerRemovalStateMachine.BrokerRemovalEvent BROKER_SHUTDOWN_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_REMOVAL_SUCCESS
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_REMOVAL_FAILURE
public static final BrokerRemovalStateMachine.BrokerRemovalEvent BROKER_RESTARTED
public static final BrokerRemovalStateMachine.BrokerRemovalEvent BALANCER_RESIGNED
public static final BrokerRemovalStateMachine.BrokerRemovalEvent BALANCER_DISABLED
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_ADDED
public static final BrokerRemovalStateMachine.BrokerRemovalEvent EXCLUSION_REMOVED
public static BrokerRemovalStateMachine.BrokerRemovalEvent[] values()
for (BrokerRemovalStateMachine.BrokerRemovalEvent c : BrokerRemovalStateMachine.BrokerRemovalEvent.values()) System.out.println(c);
public static BrokerRemovalStateMachine.BrokerRemovalEvent 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 boolean canCancelRemoval()