Class EvenClusterLoadPlanClusterRelatedStats
java.lang.Object
org.apache.kafka.clients.admin.EvenClusterLoadPlanClusterRelatedStats
Cluster-related statistics class used in the construction of
EvenClusterLoadPlan.-
Constructor Summary
ConstructorsConstructorDescriptionEvenClusterLoadPlanClusterRelatedStats(int recentWindows, double partitionCoveragePercent, List<String> excludedTopics, int totalBrokers, int totalReplicas, int totalTopics) Creates anEvenClusterLoadPlanClusterRelatedStatsobject. -
Method Summary
Modifier and TypeMethodDescriptionTopics excluded for replica movements.doublePercentage of monitored partitions inside the cluster.intAmount of collected cluster metrics snapshots.intTotal brokers inside the cluster.intTotal replicas inside the cluster.intTotal topics inside the cluster.
-
Constructor Details
-
EvenClusterLoadPlanClusterRelatedStats
public EvenClusterLoadPlanClusterRelatedStats(int recentWindows, double partitionCoveragePercent, List<String> excludedTopics, int totalBrokers, int totalReplicas, int totalTopics) Creates anEvenClusterLoadPlanClusterRelatedStatsobject.- Parameters:
recentWindows- total amount of snapshots of cluster metricspartitionCoveragePercent- monitored partitions percentageexcludedTopics- topics excluded for replica movementstotalBrokers- total brokers inside the clustertotalReplicas- total replicas inside the clustertotalTopics- total topics inside the cluster
-
-
Method Details
-
recentWindows
public int recentWindows()Amount of collected cluster metrics snapshots.- Returns:
- recent windows/snapshots
-
partitionCoveragePercent
public double partitionCoveragePercent()Percentage of monitored partitions inside the cluster.- Returns:
- partition coverage percentage
-
excludedTopics
-
totalBrokers
public int totalBrokers()Total brokers inside the cluster.- Returns:
- total brokers
-
totalReplicas
public int totalReplicas()Total replicas inside the cluster.- Returns:
- total replicas
-
totalTopics
public int totalTopics()Total topics inside the cluster.- Returns:
- total topics
-