@Immutable public static enum BrokerAdditionStateMachine.BrokerAdditionState extends java.lang.Enum<BrokerAdditionStateMachine.BrokerAdditionState> implements BalancerOperationState
Enum Constant and Description |
---|
COMPLETED
The terminal state at which all reassignments have been completed and the broker addition operation is over.
|
PLAN_COMPUTATION
The initial state of broker addition, during which we are collecting metrics
and computing a reassignments plan.
|
PLAN_COMPUTATION_CANCELED
The terminal state at which the broker addition operation has been canceled during the plan computation phase.
|
PLAN_COMPUTATION_FAILED
The terminal state at which the broker addition operation failed during the plan computation phase.
|
REASSIGNMENT
The state at which reassignments are running.
|
REASSIGNMENT_CANCELED
The terminal state at which the broker addition operation has been canceled during the reassignment phase.
|
REASSIGNMENT_FAILED
The terminal state at which the broker addition operation failed during the reassignment phase.
|
Modifier and Type | Method and Description |
---|---|
org.apache.kafka.clients.admin.PartitionReassignmentsStatus |
status()
Returns the #
PartitionReassignmentsStatus for this phase |
static BrokerAdditionStateMachine.BrokerAdditionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BrokerAdditionStateMachine.BrokerAdditionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final BrokerAdditionStateMachine.BrokerAdditionState PLAN_COMPUTATION
public static final BrokerAdditionStateMachine.BrokerAdditionState REASSIGNMENT
public static final BrokerAdditionStateMachine.BrokerAdditionState PLAN_COMPUTATION_CANCELED
public static final BrokerAdditionStateMachine.BrokerAdditionState REASSIGNMENT_CANCELED
public static final BrokerAdditionStateMachine.BrokerAdditionState PLAN_COMPUTATION_FAILED
public static final BrokerAdditionStateMachine.BrokerAdditionState REASSIGNMENT_FAILED
public static final BrokerAdditionStateMachine.BrokerAdditionState COMPLETED
public static BrokerAdditionStateMachine.BrokerAdditionState[] values()
for (BrokerAdditionStateMachine.BrokerAdditionState c : BrokerAdditionStateMachine.BrokerAdditionState.values()) System.out.println(c);
public static BrokerAdditionStateMachine.BrokerAdditionState valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic org.apache.kafka.clients.admin.PartitionReassignmentsStatus status()
PartitionReassignmentsStatus
for this phase