Class EvenClusterLoadPlanGoalStatsOverview
java.lang.Object
org.apache.kafka.clients.admin.EvenClusterLoadPlanGoalStatsOverview
An overview of an SBC goal after going through an even cluster load plan computation.
Constructor Summary
ConstructorsConstructorDescriptionEvenClusterLoadPlanGoalStatsOverview(String goalStatus, List<EvenClusterLoadPlanGoalStatsOverviewRejectingGoal> rejectingGoals, int proposalsGenerated, int proposalsRejected, double proposalsRejectedPercent, int proposalsAccepted, double proposalsAcceptedPercent, int moves, int swaps) Creates anEvenClusterLoadPlanGoalStatsOverviewobject.Method Summary
Modifier and TypeMethodDescriptionStatus of the goal after cluster rebalance.intmoves()Number of replica moves that this goal generates.intTotal replica reassignment proposals accepted by other goals.doublePercentage of replica reassignment proposals generated by this goal and accepted by other goals.intTotal replica reassignment proposals generated by this goal.intTotal replica reassignment proposals generated by this goal and rejected by other goals.doublePercentage of replica reassignment proposals generated by this goal and rejected by other goals.All goals that rejected the current one's replica reassignment proposals.intswaps()Number of replica swaps that this goal generates.toString()
Constructor Details
EvenClusterLoadPlanGoalStatsOverview
public EvenClusterLoadPlanGoalStatsOverview(String goalStatus, List<EvenClusterLoadPlanGoalStatsOverviewRejectingGoal> rejectingGoals, int proposalsGenerated, int proposalsRejected, double proposalsRejectedPercent, int proposalsAccepted, double proposalsAcceptedPercent, int moves, int swaps) Creates anEvenClusterLoadPlanGoalStatsOverviewobject.- 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 proposalsproposalsGenerated- number of cluster rebalance proposals generatedproposalsRejected- number of cluster rebalance proposals rejectedproposalsRejectedPercent- percentage of rejected cluster rebalance proposalsproposalsAccepted- number of cluster rebalance proposals acceptedproposalsAcceptedPercent- percentage of accepted cluster rebalance proposalsmoves- number of generated replica movesswaps- number of generated replica swaps
Method Details
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