public abstract class ResourceDistributionGoal extends ResourceDistributionAbstractGoal
Resource
distribution over brokers.Constructor and Description |
---|
ResourceDistributionGoal() |
Modifier and Type | Method and Description |
---|---|
void |
finish()
Signal for finishing the process for rebalance or self-healing for this goal.
|
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,
false otherwise.
|
clusterModelCompletenessRequirements, clusterModelStatsComparator, isHardGoal, name, partitionActionAcceptance, partitionActionSelfSatisfied
configure, optimize, selfSatisfied, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
actionAcceptance, canChangeReplicationFactor, optimize
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.public void finish()
Goal
finish
in interface Goal
finish
in class ResourceDistributionAbstractGoal