public class OptimizationResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_cachedJSONResponse |
protected java.lang.String |
_cachedPlaintextResponse |
protected java.lang.String |
_cachedResponse |
protected OptimizerResult |
_optimizerResult |
protected static java.lang.String |
CLUSTER_MODEL_STATS |
protected static java.lang.String |
FIXED |
protected static java.lang.String |
GOAL |
protected static java.lang.String |
GOAL_SUMMARY |
static int |
JSON_VERSION |
protected static java.lang.String |
LOAD_AFTER_OPTIMIZATION |
protected static java.lang.String |
LOAD_BEFORE_OPTIMIZATION |
protected static java.lang.String |
NO_ACTION |
protected static java.lang.String |
PROPOSALS |
protected static java.lang.String |
STATUS |
protected static java.lang.String |
SUMMARY |
static java.lang.String |
VERSION |
protected static java.lang.String |
VIOLATED |
Constructor and Description |
---|
OptimizationResult(OptimizerResult optimizerResult) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
cachedJSONResponse() |
java.lang.String |
cachedPlaintextResponse() |
void |
discardIrrelevantAndCacheJsonAndPlaintext()
Keeps the JSON and plaintext response and discards the optimizer result.
|
protected void |
discardIrrelevantAndCacheRelevant() |
protected java.lang.String |
getJSONString(boolean isVerbose) |
protected java.lang.String |
getPlaintext(boolean isVerbose,
java.lang.String pretext) |
protected java.lang.String |
getPlaintextPretext() |
protected java.lang.String |
goalResultDescription(java.lang.String goalName) |
OptimizerResult |
optimizerResult() |
java.lang.String |
proposalSummary(java.lang.String operation) |
protected void |
writeProposalSummary(java.lang.StringBuilder sb) |
protected static final java.lang.String SUMMARY
protected static final java.lang.String PROPOSALS
protected static final java.lang.String GOAL
protected static final java.lang.String GOAL_SUMMARY
protected static final java.lang.String STATUS
protected static final java.lang.String CLUSTER_MODEL_STATS
protected static final java.lang.String LOAD_AFTER_OPTIMIZATION
protected static final java.lang.String LOAD_BEFORE_OPTIMIZATION
protected static final java.lang.String VIOLATED
protected static final java.lang.String FIXED
protected static final java.lang.String NO_ACTION
public static final int JSON_VERSION
public static final java.lang.String VERSION
protected OptimizerResult _optimizerResult
protected java.lang.String _cachedJSONResponse
protected java.lang.String _cachedPlaintextResponse
protected java.lang.String _cachedResponse
public OptimizationResult(OptimizerResult optimizerResult)
public OptimizerResult optimizerResult()
public java.lang.String cachedJSONResponse()
public java.lang.String cachedPlaintextResponse()
public java.lang.String proposalSummary(java.lang.String operation)
protected java.lang.String getPlaintextPretext()
protected java.lang.String getPlaintext(boolean isVerbose, java.lang.String pretext)
protected void discardIrrelevantAndCacheRelevant()
public void discardIrrelevantAndCacheJsonAndPlaintext()
protected java.lang.String getJSONString(boolean isVerbose)
protected void writeProposalSummary(java.lang.StringBuilder sb)
protected java.lang.String goalResultDescription(java.lang.String goalName)