Enum KafkaRebalanceState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      New
      The resource has not been observed by the operator before.
      NotReady
      There's been some error.
      PendingProposal
      A proposal has been requested from Cruise Control, but is not ready yet.
      ProposalReady
      A proposal is ready and waiting for approval.
      Ready
      The rebalance is complete and there is no transition from this state.
      Rebalancing
      Cruise Control is doing the rebalance for an approved proposal.
      ReconciliationPaused
      The user paused reconciliations by setting annotation strimzi.io/pause-reconciliation="true".
      Stopped
      The user has stopped the actual rebalancing by setting annotation strimzi.io/rebalance=stop May transition back to: PendingProposalIf the user sets annotation strimzi.io/rebalance=refresh but the proposal is not ready yet. ProposalReadyIf the user sets annotation strimzi.io/rebalance=refresh and the proposal is already ready.
    • Enum Constant Detail

      • 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.
      • 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 Detail

      • values

        public static KafkaRebalanceState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (KafkaRebalanceState c : KafkaRebalanceState.values())
            System.out.println(c);
        
        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