Class EvenClusterLoadPlanGoalStatsOverviewRejectingGoal

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

public class EvenClusterLoadPlanGoalStatsOverviewRejectingGoal extends Object
Holds SBC goal-specific information. For a given goal, it shows how many times did the specified goal got its cluster optimization proposals rejected by other goals and also what are those rejecting goals' names.
Basically, every SBC goal can have one or more instances of EvenClusterLoadPlanGoalStatsOverviewRejectingGoal linked to it that describe all the rejecting goals' names and the number of rejections.
So, for example, the NetworkInboundUsageDistributionGoal goal can have one instance of EvenClusterLoadPlanGoalStatsOverviewRejectingGoal that shows that CpuUsageDistributionGoal rejected its proposals 7 times.
  • Constructor Details

    • EvenClusterLoadPlanGoalStatsOverviewRejectingGoal

      public EvenClusterLoadPlanGoalStatsOverviewRejectingGoal(String goalName, int proposalsRejected)
      Parameters:
      goalName - name of the rejecting goal
      proposalsRejected - number of proposals that it rejected
  • Method Details

    • goalName

      public String goalName()
      Name of the rejecting goal.
      Returns:
      goal name
    • proposalsRejected

      public int proposalsRejected()
      Number of proposals rejected by this rejecting goal.
      Returns:
      proposals rejected
    • toString

      public String toString()
      Overrides:
      toString in class Object