public class ClusterModelStats
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
double |
diskUtilizationStandardDeviation()
Get the standard deviation of disk utilization of this cluster model;
|
java.lang.String |
getJSONString() |
java.util.Map<java.lang.String,java.lang.Object> |
getJsonStructure() |
java.util.Map<Statistic,java.lang.Number> |
leaderReplicaStats()
Get leader replica stats for the cluster instance that the object was populated with.
|
double |
monitoredPartitionsPercentage()
Get the monitored partition percentage of this cluster model;
|
java.util.Map<Resource,java.lang.Integer> |
numBalancedBrokersByResource()
Get number of balanced brokers by resource for the cluster instance that the object was populated with.
|
int |
numBrokers()
Get number of brokers for the cluster instance that the object was populated with.
|
int |
numBrokersUnderPotentialNwOut()
Get number of brokers under potential nw out for the cluster instance that the object was populated with.
|
int |
numPartitionsWithOfflineReplicas()
Get number of number of partitions with offline replicas in the cluster.
|
int |
numReplicasInCluster()
Get number of replicas for the cluster instance that the object was populated with.
|
int |
numSnapshotWindows()
Get the number of snapshot windows used by this cluster model;
|
int |
numTopics()
Get number of topics for the cluster instance that the object was populated with.
|
int |
numUnbalancedDisks()
Get the number of unbalanced disk in this cluster model;
A disk is taken as unbalanced if its utilization percentage is out of the range centered at its broker utilization
percentage with boundary determined by
KafkaCruiseControlConfig.DISK_BALANCE_THRESHOLD_CONFIG . |
java.util.Map<Statistic,java.lang.Double> |
potentialNwOutUtilizationStats()
Get outbound network utilization stats for the cluster instance that the object was populated with.
|
java.util.Map<Statistic,java.lang.Number> |
replicaStats()
Get replica stats for the cluster instance that the object was populated with.
|
java.util.Map<Statistic,java.util.Map<Resource,java.lang.Double>> |
resourceUtilizationStats()
Get resource utilization stats for the cluster instance that the object was populated with.
|
java.util.Map<Statistic,java.lang.Number> |
topicReplicaStats()
Get topic replica stats for the cluster instance that the object was populated with.
|
java.lang.String |
toString() |
java.lang.String |
toStringCounts() |
double[][] |
utilizationMatrix()
This is the utilization matrix generated from
ClusterModel.utilizationMatrix() . |
public java.util.Map<Statistic,java.util.Map<Resource,java.lang.Double>> resourceUtilizationStats()
public java.util.Map<Statistic,java.lang.Double> potentialNwOutUtilizationStats()
public java.util.Map<Statistic,java.lang.Number> replicaStats()
public java.util.Map<Statistic,java.lang.Number> leaderReplicaStats()
public java.util.Map<Statistic,java.lang.Number> topicReplicaStats()
public int numBrokers()
public int numReplicasInCluster()
public int numPartitionsWithOfflineReplicas()
public int numTopics()
public java.util.Map<Resource,java.lang.Integer> numBalancedBrokersByResource()
public int numBrokersUnderPotentialNwOut()
public double[][] utilizationMatrix()
ClusterModel.utilizationMatrix()
.public double monitoredPartitionsPercentage()
public int numSnapshotWindows()
public int numUnbalancedDisks()
KafkaCruiseControlConfig.DISK_BALANCE_THRESHOLD_CONFIG
.public double diskUtilizationStandardDeviation()
public java.lang.String getJSONString()
public java.util.Map<java.lang.String,java.lang.Object> getJsonStructure()
public java.lang.String toStringCounts()
public java.lang.String toString()
toString
in class java.lang.Object