public class SingleBrokerStats extends Object
Modifier and Type | Field and Description |
---|---|
protected BasicStats |
basicStats |
protected static String |
BROKER |
protected static String |
BROKER_STATE |
protected static String |
DISK_STATE |
protected Map<String,DiskStats> |
diskStatsByLogdir |
protected String |
host |
protected static String |
HOST |
protected int |
id |
protected boolean |
isEstimated |
protected Broker.Strategy |
strategy |
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() |
protected static final String HOST
protected static final String BROKER
protected static final String BROKER_STATE
protected static final String DISK_STATE
protected final String host
protected final int id
protected final Broker.Strategy strategy
protected final BasicStats basicStats
protected final boolean isEstimated
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()