public class ReplicaDistributionStatsSnapshot extends AbstractDistributionStatsSnapshot
Modifier and Type | Class and Description |
---|---|
static class |
ReplicaDistributionStatsSnapshot.ReplicaResource |
Constructor and Description |
---|
ReplicaDistributionStatsSnapshot(BrokerResourceStats minBrokerResource,
BrokerResourceStats maxBrokerResource,
ReplicaCountThresholds replicaThresholds) |
Modifier and Type | Method and Description |
---|---|
static ReplicaDistributionStatsSnapshot |
compute(ReplicaCountThresholds replicaThresholds,
List<BrokerResourceStats> resources) |
ReplicaCountThresholds |
replicaThresholds() |
maxBrokerResource, minBrokerResource
public ReplicaDistributionStatsSnapshot(BrokerResourceStats minBrokerResource, BrokerResourceStats maxBrokerResource, ReplicaCountThresholds replicaThresholds)
public ReplicaCountThresholds replicaThresholds()
public static ReplicaDistributionStatsSnapshot compute(ReplicaCountThresholds replicaThresholds, List<BrokerResourceStats> resources) throws IllegalArgumentException
IllegalArgumentException