public class GoalOptimizationResult extends Object
GoalOptimizationResult
is returned by the Goal.optimize(com.linkedin.kafka.cruisecontrol.model.ClusterModel, java.util.Set<com.linkedin.kafka.cruisecontrol.analyzer.goals.Goal>, com.linkedin.kafka.cruisecontrol.analyzer.OptimizationOptions)
method, representing the result of a single
goal execution.Modifier and Type | Class and Description |
---|---|
static class |
GoalOptimizationResult.BrokerResultState
Balancing result of individual broker.
|
static class |
GoalOptimizationResult.Builder |
static class |
GoalOptimizationResult.GoalOptimizationResultState
Aggregated result of this goal optimization.
|
Modifier and Type | Method and Description |
---|---|
Map<Integer,GoalOptimizationResult.BrokerResultState> |
brokerResultStates() |
Set<String> |
goalsWithMovements() |
boolean |
hasReplicaChange()
Whether this goal optimization run contains any sort of replica movements (e.g leadership change, removed replica, etc)
|
boolean |
isFailed() |
boolean |
isSuccessful() |
ProposalStats |
proposalStats() |
GoalOptimizationResult.GoalOptimizationResultState |
resultState() |
SortedSet<TopicPartitionMovement> |
topicPartitionMovements() |
String |
toString() |
public GoalOptimizationResult.GoalOptimizationResultState resultState()
public Map<Integer,GoalOptimizationResult.BrokerResultState> brokerResultStates()
public boolean hasReplicaChange()
public boolean isSuccessful()
public boolean isFailed()
public Set<String> goalsWithMovements()
public ProposalStats proposalStats()
public SortedSet<TopicPartitionMovement> topicPartitionMovements()