Modifier and Type | Class and Description |
---|---|
static class |
GoalViolations.GoalResult |
Modifier and Type | Field and Description |
---|---|
protected OptimizationResult |
optimizationResult |
Constructor and Description |
---|
GoalViolations(KafkaCruiseControl kafkaCruiseControl,
boolean allowCapacityEstimation,
boolean excludeRecentlyRemovedBrokers,
GoalsConfig goalConfig) |
Modifier and Type | Method and Description |
---|---|
String |
anomalyId() |
boolean |
fix()
Fix the anomaly with the system.
|
GoalsConfig |
goalsConfig()
Returns the goals that will be used to fix this anomaly.
|
String |
toString() |
Map<Boolean,List<GoalViolations.GoalResult>> |
violatedGoalsByFixability()
Get all the goal violations.
|
protected OptimizationResult optimizationResult
public GoalViolations(KafkaCruiseControl kafkaCruiseControl, boolean allowCapacityEstimation, boolean excludeRecentlyRemovedBrokers, GoalsConfig goalConfig)
public GoalsConfig goalsConfig()
Anomaly
public Map<Boolean,List<GoalViolations.GoalResult>> violatedGoalsByFixability()
public String anomalyId()
public boolean fix() throws KafkaCruiseControlException
Anomaly
KafkaCruiseControlException
public String toString()