public class NetworkInboundUsageDistributionGoal extends ResourceDistributionGoal
ResourceDistributionGoal.ChangeType
Goal.ClusterModelStatsComparator
balancingConstraint, finished, minMonitoredPartitionPercentage, numWindows, optimizationResultBuilder
Constructor and Description |
---|
NetworkInboundUsageDistributionGoal()
Constructor for Resource Distribution Goal.
|
Modifier and Type | Method and Description |
---|---|
ActionAcceptance |
actionAcceptance(BalancingAction action,
ClusterModel clusterModel)
Check whether given action is acceptable by this goal.
|
String |
name()
Get the name of this goal.
|
protected Resource |
resource() |
balanceLowerThreshold, balanceUpperThreshold, brokersToBalance, clusterModelCompletenessRequirements, clusterModelStatsComparator, finish, initGoalState, isHardGoal, rebalanceForBroker, selfSatisfied, updateGoalState
changeObservership, configure, maybeApplyBalancingAction, maybeMoveReplicaBetweenDisks, optimize, shouldExclude, toString, updateReplicationFactor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
canChangeReplicationFactor
public NetworkInboundUsageDistributionGoal()
protected Resource resource()
resource
in class ResourceDistributionGoal
public ActionAcceptance actionAcceptance(BalancingAction action, ClusterModel clusterModel)
ResourceDistributionGoal
actionAcceptance
in interface Goal
actionAcceptance
in class ResourceDistributionGoal
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 String name()
ResourceDistributionGoal
name
in interface Goal
name
in class ResourceDistributionGoal