Class EvenClusterLoadPlanGoalStatsResources

java.lang.Object
org.apache.kafka.clients.admin.EvenClusterLoadPlanGoalStatsResources

public class EvenClusterLoadPlanGoalStatsResources extends Object
Holds resource utilization statistics for both the whole cluster like information about CPU, inbound and outbound network traffic, disk usage, etc.
  • Constructor Details

    • EvenClusterLoadPlanGoalStatsResources

      @Deprecated public 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 constructor EvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int) since it includes the producerInboundKBps
      Parameters:
      cpuPercent - cluster's CPU usage %
      networkInboundKBps - cluster's inbound network traffic in KB/s
      networkOutboundKBps - cluster's outbound network traffic in KB/s
      diskMB - cluster's disk usage in MB
      potentialNwOutKBps - potential outbound network traffic in KB/s for the cluster
      replicas - number of replicas in the cluster
      leaderReplicas - number of leader replicas in the cluster
      topicReplicas - number of topic replicas in the cluster
    • EvenClusterLoadPlanGoalStatsResources

      @Deprecated public 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 constructor EvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int) since it includes the consumerOutboundKBps
      Parameters:
      cpuPercent - cluster's CPU usage %
      networkInboundKBps - cluster's inbound network traffic in KB/s
      producerInboundKBps - cluster's inbound producer traffic in KB/s
      networkOutboundKBps - cluster's outbound network traffic in KB/s
      diskMB - cluster's disk usage in MB
      potentialNwOutKBps - potential outbound network traffic in KB/s for the cluster
      replicas - number of replicas in the cluster
      leaderReplicas - number of leader replicas in the cluster
      topicReplicas - 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)
      Parameters:
      cpuPercent - cluster's CPU usage %
      networkInboundKBps - cluster's inbound network traffic in KB/s
      producerInboundKBps - cluster's inbound producer traffic in KB/s
      networkOutboundKBps - cluster's outbound network traffic in KB/s
      consumerOutboundKBps - cluster's outbound consumer traffic in KB/s
      diskMB - cluster's disk usage in MB
      potentialNwOutKBps - potential outbound network traffic in KB/s for the cluster
      replicas - number of replicas in the cluster
      leaderReplicas - number of leader replicas in the cluster
      topicReplicas - 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

      public String toString()
      Overrides:
      toString in class Object