Class EvenClusterLoadPlanGoalStatsOverview

java.lang.Object
org.apache.kafka.clients.admin.EvenClusterLoadPlanGoalStatsOverview

public class EvenClusterLoadPlanGoalStatsOverview extends Object
An overview of an SBC goal after going through an even cluster load plan computation.
  • Constructor Details

    • EvenClusterLoadPlanGoalStatsOverview

      public EvenClusterLoadPlanGoalStatsOverview(String goalStatus, List<EvenClusterLoadPlanGoalStatsOverviewRejectingGoal> rejectingGoals, int proposalsGenerated, int proposalsRejected, double proposalsRejectedPercent, int proposalsAccepted, double proposalsAcceptedPercent, int moves, int swaps)
      Parameters:
      goalStatus - status of the goal after cluster rebalance, can be one of 'FIXED', 'VIOLATED', 'NO-ACTION'
      rejectingGoals - other goals that rejected the current goal's proposals
      proposalsGenerated - number of cluster rebalance proposals generated
      proposalsRejected - number of cluster rebalance proposals rejected
      proposalsRejectedPercent - percentage of rejected cluster rebalance proposals
      proposalsAccepted - number of cluster rebalance proposals accepted
      proposalsAcceptedPercent - percentage of accepted cluster rebalance proposals
      moves - number of generated replica moves
      swaps - number of generated replica swaps
  • Method Details

    • goalStatus

      public String goalStatus()
      Status of the goal after cluster rebalance. Can be one of 'FIXED', 'VIOLATED', 'NO-ACTION'.
      • 'FIXED' means that the after cluster rebalancing, this goal is not violated anymore.
      • 'VIOLATED' means that cluster rebalancing didn't manage to fix this goal.
      • 'NO-ACTION' means that this goal was not violated and didn't require any fixing.
      Returns:
      goal status
    • rejectingGoals

      All goals that rejected the current one's replica reassignment proposals.
      Returns:
      rejecting goals
    • proposalsGenerated

      public int proposalsGenerated()
      Total replica reassignment proposals generated by this goal.
      Returns:
      proposals generated
    • proposalsRejected

      public int proposalsRejected()
      Total replica reassignment proposals generated by this goal and rejected by other goals.
      Returns:
      proposals rejected
    • proposalsRejectedPercent

      public double proposalsRejectedPercent()
      Percentage of replica reassignment proposals generated by this goal and rejected by other goals.
      Returns:
      proposals rejected percent
    • proposalsAccepted

      public int proposalsAccepted()
      Total replica reassignment proposals accepted by other goals.
      Returns:
      proposals accepted
    • proposalsAcceptedPercent

      public double proposalsAcceptedPercent()
      Percentage of replica reassignment proposals generated by this goal and accepted by other goals.
      Returns:
      proposals accepted percent
    • moves

      public int moves()
      Number of replica moves that this goal generates.
      Returns:
      moves
    • swaps

      public int swaps()
      Number of replica swaps that this goal generates.
      Returns:
      swaps
    • toString

      public String toString()
      Overrides:
      toString in class Object