Package org.apache.kafka.clients.admin
Class EvenClusterLoadPlanGoalStatsResources
java.lang.Object
org.apache.kafka.clients.admin.EvenClusterLoadPlanGoalStatsResources
Holds resource utilization statistics for both the whole cluster like information about CPU, inbound and outbound network traffic, disk usage, etc.
Constructor Summary
ConstructorsConstructorDescriptionEvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double producerInboundKBps, double networkOutboundKBps, double consumerOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Creates anEvenClusterLoadPlanGoalStatsResourcesobject.EvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double producerInboundKBps, double networkOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Deprecated.EvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double networkOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Deprecated.since 7.4.0; prefer the other constructorEvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)since it includes the producerInboundKBpsMethod Summary
Modifier and TypeMethodDescriptiondoubleCluster's consumer outbound traffic in KB/s.doubleCluster's CPU usage percent.doublediskMB()Cluster's disk usage in MB.intNumber of leader replicas in the cluster.doubleCluster's inbound network traffic in KB/s.doubleCluster's outbound network traffic in KB/s.doubleCluster's potential outgoing network traffic in KB/s.doubleCluster's producer inbound traffic in KB/s.intreplicas()Number of replicas in the cluster.intNumber of replicas in the cluster.toString()
Constructor Details
EvenClusterLoadPlanGoalStatsResources
@Deprecatedpublic EvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double networkOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Deprecated.since 7.4.0; prefer the other constructorEvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)since it includes the producerInboundKBpsCreates anEvenClusterLoadPlanGoalStatsResourcesobject.- Parameters:
cpuPercent- cluster's CPU usage %networkInboundKBps- cluster's inbound network traffic in KB/snetworkOutboundKBps- cluster's outbound network traffic in KB/sdiskMB- cluster's disk usage in MBpotentialNwOutKBps- potential outbound network traffic in KB/s for the clusterreplicas- number of replicas in the clusterleaderReplicas- number of leader replicas in the clustertopicReplicas- number of topic replicas in the cluster
EvenClusterLoadPlanGoalStatsResources
@Deprecatedpublic EvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double producerInboundKBps, double networkOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Deprecated.since 7.5.0; prefer the other constructorEvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)since it includes the consumerOutboundKBpsCreates anEvenClusterLoadPlanGoalStatsResourcesobject.- Parameters:
cpuPercent- cluster's CPU usage %networkInboundKBps- cluster's inbound network traffic in KB/sproducerInboundKBps- cluster's inbound producer traffic in KB/snetworkOutboundKBps- cluster's outbound network traffic in KB/sdiskMB- cluster's disk usage in MBpotentialNwOutKBps- potential outbound network traffic in KB/s for the clusterreplicas- number of replicas in the clusterleaderReplicas- number of leader replicas in the clustertopicReplicas- number of topic replicas in the cluster
EvenClusterLoadPlanGoalStatsResources
public EvenClusterLoadPlanGoalStatsResources(double cpuPercent, double networkInboundKBps, double producerInboundKBps, double networkOutboundKBps, double consumerOutboundKBps, double diskMB, double potentialNwOutKBps, int replicas, int leaderReplicas, int topicReplicas) Creates anEvenClusterLoadPlanGoalStatsResourcesobject.- Parameters:
cpuPercent- cluster's CPU usage %networkInboundKBps- cluster's inbound network traffic in KB/sproducerInboundKBps- cluster's inbound producer traffic in KB/snetworkOutboundKBps- cluster's outbound network traffic in KB/sconsumerOutboundKBps- cluster's outbound consumer traffic in KB/sdiskMB- cluster's disk usage in MBpotentialNwOutKBps- potential outbound network traffic in KB/s for the clusterreplicas- number of replicas in the clusterleaderReplicas- number of leader replicas in the clustertopicReplicas- number of topic replicas in the cluster
Method Details
cpuPercent
public double cpuPercent()Cluster's CPU usage percent.- Returns:
- cpu usage percent
networkInboundKBps
public double networkInboundKBps()Cluster's inbound network traffic in KB/s.- Returns:
- network inbound
producerInboundKBps
public double producerInboundKBps()Cluster's producer inbound traffic in KB/s.networkOutboundKBps
public double networkOutboundKBps()Cluster's outbound network traffic in KB/s.- Returns:
- network outbound
consumerOutboundKBps
public double consumerOutboundKBps()Cluster's consumer outbound traffic in KB/s.diskMB
public double diskMB()Cluster's disk usage in MB.- Returns:
- disk
potentialNwOutKBps
public double potentialNwOutKBps()Cluster's potential outgoing network traffic in KB/s.- Returns:
- potential network out
replicas
public int replicas()Number of replicas in the cluster.- Returns:
- replicas
leaderReplicas
public int leaderReplicas()Number of leader replicas in the cluster.- Returns:
- leader replicas
topicReplicas
public int topicReplicas()Number of replicas in the cluster.- Returns:
- total replicas
toString
EvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)since it includes the consumerOutboundKBps