public static class DistributionThresholdUtils.ResourcePercentageThresholds extends Object
Resource
distribution, in percentages.Modifier and Type | Method and Description |
---|---|
double |
balanceLowerPercent()
The lower limit of the balance threshold, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
double |
balanceUpperPercent()
The upper limit of the balance threshold, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
static DistributionThresholdUtils.ResourcePercentageThresholds |
compute(ClusterModel clusterModel,
OptimizationOptions optimizationOptions,
BalancingConstraint balancingConstraint,
Resource resource,
boolean validatePercentages)
Computes the low utilization, lower limit and upper limit thresholds based on which a distribution goal
will decide whether to move resources.
|
boolean |
equals(Object o) |
int |
hashCode() |
double |
lowUtilizationPercent()
Returns the low utilization threshold for this goal, usually representing a percentage within the range [0.0, 1.0] (0-100%) (with exception to KAFKALESS-761).
|
Resource |
resource() |
String |
toString() |
public double balanceUpperPercent()
balanceLowerPercent()
and balanceUpperPercent()
.public double balanceLowerPercent()
balanceLowerPercent()
and balanceUpperPercent()
.public double lowUtilizationPercent()
public Resource resource()
public static DistributionThresholdUtils.ResourcePercentageThresholds compute(ClusterModel clusterModel, OptimizationOptions optimizationOptions, BalancingConstraint balancingConstraint, Resource resource, boolean validatePercentages)