public abstract class IncrementalResourceDistributionGoal extends ResourceDistributionAbstractGoal
Resource
distribution over brokers incrementally.Constructor and Description |
---|
IncrementalResourceDistributionGoal() |
Modifier and Type | Method and Description |
---|---|
ModelCompletenessRequirements |
clusterModelCompletenessRequirements()
Specify the load requirements for this goal.
|
void |
configure(Map<String,?> configs)
Configure this class with the given key-value pairs
|
ActionAcceptance |
replicaActionAcceptance(ReplicaBalancingAction action,
ClusterModel clusterModel)
Check whether given action is acceptable by this goal.
|
boolean |
replicaActionSelfSatisfied(ClusterModel clusterModel,
ReplicaBalancingAction action)
Check if requirements of this goal are not violated if this action is applied to the given cluster state.
|
clusterModelStatsComparator, finish, isHardGoal, name, partitionActionAcceptance, partitionActionSelfSatisfied
optimize, selfSatisfied, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
actionAcceptance, canChangeReplicationFactor, optimize
public void configure(Map<String,?> configs)
CruiseControlConfigurable
configure
in interface CruiseControlConfigurable
configure
in class AbstractGoal
public ModelCompletenessRequirements clusterModelCompletenessRequirements()
Goal
clusterModelCompletenessRequirements
in interface Goal
clusterModelCompletenessRequirements
in class ResourceDistributionAbstractGoal
public ActionAcceptance replicaActionAcceptance(ReplicaBalancingAction action, ClusterModel clusterModel)
action
- Action to be checked for acceptance.clusterModel
- The state of the cluster.ActionAcceptance.ACCEPT
if the action is acceptable by this goal,
ActionAcceptance.REPLICA_REJECT
otherwise.public boolean replicaActionSelfSatisfied(ClusterModel clusterModel, ReplicaBalancingAction action)
clusterModel
- The state of the cluster.action
- Action containing information about potential modification to the given cluster model.