Modifier and Type | Method and Description |
---|---|
double |
balanceLowerThreshold()
The lower bound of the resource utilization band towards which a resource distribution goal will try to balance the
brokers.
|
double |
balanceUpperThreshold()
The upper bound of the resource utilization band towards which a resource distribution goal will try to balance the
brokers.
|
static ResourceUtilizationRatioThresholds |
create(double balanceUpperThreshold,
double balanceLowerThreshold,
double meanUtilizationRatio,
double lowUtilizationRatio,
Resource resource,
boolean needValidation) |
boolean |
equals(Object o) |
int |
hashCode() |
double |
lowUtilizationRatio()
A resource distribution goal will not balance any brokers whose resource utilization ratio are under this value.
|
double |
meanUtilizationRatio()
The arithmetic mean utilization ratio of all brokers in a kafka cluster.
|
Resource |
resource()
The
Resource to which the thresholds correspond. |
String |
toString() |
public static ResourceUtilizationRatioThresholds create(double balanceUpperThreshold, double balanceLowerThreshold, double meanUtilizationRatio, double lowUtilizationRatio, Resource resource, boolean needValidation)
public double balanceUpperThreshold()
public double balanceLowerThreshold()
public double meanUtilizationRatio()
public double lowUtilizationRatio()