public class OptimizationResult extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OptimizationResult.PlaintextSummary |
Modifier and Type | Field and Description |
---|---|
protected static String |
FIXED |
protected static String |
GOAL |
protected static String |
NO_ACTION |
protected OptimizerResult |
optimizerResult |
protected static String |
VIOLATED |
Constructor and Description |
---|
OptimizationResult(OptimizerResult optimizerResult) |
Modifier and Type | Method and Description |
---|---|
OptimizationResult.PlaintextSummary |
cachedPlaintextSelfHealingSummary() |
void |
discardIrrelevantAndCacheText()
Update plaintext response and discards the optimizer result in order to avoid memory pressure.
|
protected String |
generatePlaintext(boolean isVerbose,
String pretext)
Generates the plaintext summary of the optimization result.
|
OptimizerResult |
optimizerResult() |
OptimizationResult.PlaintextSummary |
proposalSummary(String operation) |
kafka.common.EvenClusterLoadPlanInternal |
toEvenClusterLoadPlan() |
protected static final String GOAL
protected static final String VIOLATED
protected static final String FIXED
protected static final String NO_ACTION
protected OptimizerResult optimizerResult
public OptimizationResult(OptimizerResult optimizerResult)
public OptimizerResult optimizerResult()
public OptimizationResult.PlaintextSummary cachedPlaintextSelfHealingSummary()
public OptimizationResult.PlaintextSummary proposalSummary(String operation)
protected String generatePlaintext(boolean isVerbose, String pretext)
isVerbose
- a boolean denoting whether this summary should be verbose.
If true, the summary will include details about the proposals being ran as part of the optimization.pretext
- a pretext to be added to the beginning of the summary.public void discardIrrelevantAndCacheText()
public kafka.common.EvenClusterLoadPlanInternal toEvenClusterLoadPlan()