public class CapacityStatsSnapshot extends Object
Modifier and Type | Field and Description |
---|---|
double |
effectiveCapacity |
int |
numHotPartitions |
Resource |
resource |
Constructor and Description |
---|
CapacityStatsSnapshot(double effectiveCapacity,
Resource resource,
int numHotPartitions) |
public final double effectiveCapacity
public final Resource resource
public final int numHotPartitions
public CapacityStatsSnapshot(double effectiveCapacity, Resource resource, int numHotPartitions)
effectiveCapacity
- the effective capacity limit of each broker in the cluster,
in the associated unit of the respective Resource
it applies to.resource
- the resource this hard goal applies to.numHotPartitions
- the number of hot partitions in the cluster.
A hot partition is one which takes more than
KafkaCruiseControlConfig.HOT_PARTITION_CAPACITY_UTILIZATION_THRESHOLD_CONFIG
percentage utilization of the capacity of a single broker, for the respective resource.