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 anEvenClusterLoadPlanGoalStatsResources
object.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 producerInboundKBps -
Method Summary
Modifier and TypeMethodDescriptiondouble
Cluster's consumer outbound traffic in KB/s.double
Cluster's CPU usage percent.double
diskMB()
Cluster's disk usage in MB.int
Number of leader replicas in the cluster.double
Cluster's inbound network traffic in KB/s.double
Cluster's outbound network traffic in KB/s.double
Cluster's potential outgoing network traffic in KB/s.double
Cluster's producer inbound traffic in KB/s.int
replicas()
Number of replicas in the cluster.int
Number of replicas in the cluster.toString()
-
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 constructorEvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)
since it includes the producerInboundKBpsCreates anEvenClusterLoadPlanGoalStatsResources
object.- 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
@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 constructorEvenClusterLoadPlanGoalStatsResources(double, double, double, double, double, double, int, int, int)
since it includes the consumerOutboundKBpsCreates anEvenClusterLoadPlanGoalStatsResources
object.- 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 anEvenClusterLoadPlanGoalStatsResources
object.- 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