public class ReplicaDistributionStatsSnapshot extends AbstractDistributionStatsSnapshot
Modifier and Type | Class and Description |
---|---|
static class |
ReplicaDistributionStatsSnapshot.ReplicaResource |
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
maxBrokerResource, minBrokerResource
Constructor and Description |
---|
ReplicaDistributionStatsSnapshot(BrokerResourceStats minBrokerResource,
BrokerResourceStats maxBrokerResource,
DistributionThresholdUtils.ReplicaThresholds replicaThresholds) |
Modifier and Type | Method and Description |
---|---|
static ReplicaDistributionStatsSnapshot |
compute(DistributionThresholdUtils.ReplicaThresholds replicaThresholds,
List<BrokerResourceStats> resources) |
DistributionThresholdUtils.ReplicaThresholds |
replicaThresholds() |
maxBrokerResource, maxResource, minBrokerResource, minResource
public ReplicaDistributionStatsSnapshot(BrokerResourceStats minBrokerResource, BrokerResourceStats maxBrokerResource, DistributionThresholdUtils.ReplicaThresholds replicaThresholds)
public DistributionThresholdUtils.ReplicaThresholds replicaThresholds()
public static ReplicaDistributionStatsSnapshot compute(DistributionThresholdUtils.ReplicaThresholds replicaThresholds, List<BrokerResourceStats> resources) throws IllegalArgumentException
IllegalArgumentException