@Immutable public static enum BalancerStatusStateMachine.BalancerState extends Enum<BalancerStatusStateMachine.BalancerState> implements BalancerOperationState
BalancerOperationState.BalancerOperationStateCharacteristics
Enum Constant and Description |
---|
BALANCER_EVENT_RECEIVED
The initial state of balancer component during which a request for balancer is received
from the controller.
|
DISABLED
The state at which the balancer component is disabled.
|
ERROR
The state at which some error occurred either due to misconfiguration or during cruise
control startup.
|
JBOD_ENABLED_ERROR
The state at which the balancer component is not able to start because JBOD is enabled for
the cluster.
|
RUNNING
The state at which cruise control is running.
|
STARTING
The state at which the cruise control instance is being initialized.
|
STOPPED
The terminal state at which the balancer component is shutting down, this can occur due to
controller failover.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isTerminal()
Boolean indicating whether a state is terminal or not.
|
org.apache.kafka.clients.admin.BalancerStatus |
status() |
static BalancerStatusStateMachine.BalancerState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BalancerStatusStateMachine.BalancerState[] |
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 BalancerStatusStateMachine.BalancerState BALANCER_EVENT_RECEIVED
public static final BalancerStatusStateMachine.BalancerState STARTING
public static final BalancerStatusStateMachine.BalancerState RUNNING
public static final BalancerStatusStateMachine.BalancerState DISABLED
public static final BalancerStatusStateMachine.BalancerState JBOD_ENABLED_ERROR
public static final BalancerStatusStateMachine.BalancerState ERROR
public static final BalancerStatusStateMachine.BalancerState STOPPED
public static BalancerStatusStateMachine.BalancerState[] values()
for (BalancerStatusStateMachine.BalancerState c : BalancerStatusStateMachine.BalancerState.values()) System.out.println(c);
public static BalancerStatusStateMachine.BalancerState 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 org.apache.kafka.clients.admin.BalancerStatus status()
public boolean isTerminal()
BalancerOperationState
isTerminal
in interface BalancerOperationState