public class SingleBrokerStats extends Object
Constructor and Description |
---|
SingleBrokerStats(String host,
int id,
Broker.Strategy strategy,
double diskUtil,
double cpuUtil,
double leaderBytesInRate,
double followerBytesInRate,
double bytesOutRate,
double potentialBytesOutRate,
int numReplicas,
int numLeaders,
boolean isEstimated,
double capacity,
Map<String,DiskStats> diskStatsByLogdir) |
Modifier and Type | Method and Description |
---|---|
BasicStats |
basicStats() |
double |
bytesIn() |
double |
bytesOut() |
Map<String,DiskStats> |
diskStatsByLogdir()
Get per-logdir disk statistics of the broker.
|
Map<String,Object> |
getJSONStructure() |
String |
host() |
int |
id() |
boolean |
isEstimated() |
Broker.Strategy |
strategy() |
public SingleBrokerStats(String host, int id, Broker.Strategy strategy, double diskUtil, double cpuUtil, double leaderBytesInRate, double followerBytesInRate, double bytesOutRate, double potentialBytesOutRate, int numReplicas, int numLeaders, boolean isEstimated, double capacity, Map<String,DiskStats> diskStatsByLogdir)
public String host()
public Broker.Strategy strategy()
public int id()
public BasicStats basicStats()
public Map<String,DiskStats> diskStatsByLogdir()
ClusterModel
has been created with a request to populate
replica placement info, otherwise returns an empty map.public boolean isEstimated()
public double bytesIn()
public double bytesOut()