Enum KafkaRebalanceState

java.lang.Object
java.lang.Enum<KafkaRebalanceState>
io.strimzi.api.kafka.model.rebalance.KafkaRebalanceState
All Implemented Interfaces:
Serializable, Comparable<KafkaRebalanceState>

public enum KafkaRebalanceState extends Enum<KafkaRebalanceState>
  • Enum Constant Details

    • New

      public static final KafkaRebalanceState New
      The resource has not been observed by the operator before. Transitions to:
      PendingProposal
      If the proposal request was made and it's not ready yet.
      ProposalReady
      If the proposal request was made and it's already ready.
      NotReady
      If the resource is invalid and a request could not be made.
    • PendingProposal

      public static final KafkaRebalanceState PendingProposal
      A proposal has been requested from Cruise Control, but is not ready yet. Transitions to:
      PendingProposal
      A rebalance proposal is not ready yet.
      ProposalReady
      Once Cruise Control has a ready proposal.
      NotReady
      If Cruise Control returned an error
    • ProposalReady

      public static final KafkaRebalanceState ProposalReady
      A proposal is ready and waiting for approval. Transitions to:
      Rebalancing
      When the user sets annotation strimzi.io/rebalance=approve.
      PendingProposal
      When the user sets annotation strimzi.io/rebalance=refresh but the proposal is not ready yet.
      ProposalReady
      When the user sets annotation strimzi.io/rebalance=refresh and the proposal is already ready.
    • Rebalancing

      public static final KafkaRebalanceState Rebalancing
      Cruise Control is doing the rebalance for an approved proposal. Transitions to:
      Rebalancing
      While the actual rebalancing is still ongoing
      Stopped
      If the user sets annotation strimzi.io/rebalance=stop.
      Ready
      Once the rebalancing is complete.
      ProposalReady
      When annotation strimzi.io/rebalance=refresh is applied on rebalance resource and the proposal is updated.
    • Stopped

      public static final KafkaRebalanceState Stopped
      The user has stopped the actual rebalancing by setting annotation strimzi.io/rebalance=stop May transition back to:
      PendingProposal
      If the user sets annotation strimzi.io/rebalance=refresh but the proposal is not ready yet.
      ProposalReady
      If the user sets annotation strimzi.io/rebalance=refresh and the proposal is already ready.
    • NotReady

      public static final KafkaRebalanceState NotReady
      There's been some error. Transitions to:
      New
      If the error was caused by the resource itself that was fixed by the user.
    • Ready

      public static final KafkaRebalanceState Ready
      The rebalance is complete and there is no transition from this state. The resource is eligible for garbage collection after a configurable delay. There is no transition from this state to a new one.
    • ReconciliationPaused

      public static final KafkaRebalanceState ReconciliationPaused
      The user paused reconciliations by setting annotation strimzi.io/pause-reconciliation="true".
  • Method Details

    • values

      public static KafkaRebalanceState[] 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

      public static KafkaRebalanceState valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isValidateAnnotation

      public boolean isValidateAnnotation(KafkaRebalanceAnnotation annotation)
    • getValidAnnotations

      public List<KafkaRebalanceAnnotation> getValidAnnotations()