Enum KafkaAutoRebalanceState
java.lang.Object
java.lang.Enum<KafkaAutoRebalanceState>
io.strimzi.api.kafka.model.kafka.cruisecontrol.KafkaAutoRebalanceState
- All Implemented Interfaces:
Serializable,Comparable<KafkaAutoRebalanceState>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInitial state with a new auto-rebalancing initiated when scaling down/up operations were requested.A rebalancing related to a scale down operation is running.A rebalancing related to a scale up operation is running. -
Method Summary
Modifier and TypeMethodDescriptionstatic KafkaAutoRebalanceStateReturns the enum constant of this type with the specified name.static KafkaAutoRebalanceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Idle
Initial state with a new auto-rebalancing initiated when scaling down/up operations were requested. This is also the ending state after an auto-rebalancing completed successfully or failed. Transitions to:- RebalanceOnScaleDown
- if a scale down operation was requested. This transition happens even if a scale up was requested at the same time but the rebalancing on scaling down has the precedence. The rebalancing on scale up is queued. They will run sequentially.
- RebalanceOnScaleUp
- if only a scale up operation was requested. There was no scale down operation requested.
-
RebalanceOnScaleDown
A rebalancing related to a scale down operation is running. Transitions to:- RebalanceOnScaleDown
- if a rebalancing on scale down is still running or another one was requested while the first one ended.
- RebalanceOnScaleUp
- if a scale down operation was requested together with a scale up and, because they run sequentially, the rebalance on scale down had the precedence, was executed first and completed successfully. We can now move on with rebalancing for the scale up.
- Idle
- if only a scale down operation was requested, it was executed and completed successfully or failed.
-
RebalanceOnScaleUp
A rebalancing related to a scale up operation is running. Transitions to:- RebalanceOnScaleUp
- if a rebalancing on scale up is still running or another one was requested while the first one ended.
- RebalanceOnScaleDown
- if a scale down operation was requested, so the current rebalancing scale up is stopped (and queued) and a new rebalancing scale down is started. The rebalancing scale up will be postponed.
- Idle
- if a scale up operation was requested, it was executed and completed successfully or failed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-