public class EvenClusterLoadPlanBrokerStats extends Object
Constructor and Description |
---|
EvenClusterLoadPlanBrokerStats(int brokerId,
String host,
double diskMB,
double diskPercent,
double cpuPercent,
double leaderNetworkInKBps,
double followerNetworkInKBps,
double networkOutKBps,
double potentialNetworkOutKBps,
int leaders,
int replicas)
Creates an
EvenClusterLoadPlanBrokerStats object. |
Modifier and Type | Method and Description |
---|---|
int |
brokerId()
ID of the broker.
|
double |
cpuPercent()
CPU usage percent.
|
double |
diskMB()
Disk usage in MB.
|
double |
diskPercent()
Percentage of used up disk.
|
double |
followerNetworkInKBps()
Inbound traffic from replicas that it follows.
|
String |
getPrintableForm() |
String |
host()
Broker's host.
|
double |
leaderNetworkInKBps()
Inbound traffic from replicas that it's leader of.
|
int |
leaders()
Number of replicas that it's a leader of.
|
double |
networkOutKBps()
Outbound network traffic.
|
double |
potentialNetworkOutKBps()
Potential outbound network traffic.
|
int |
replicas()
Number of replicas hosted.
|
String |
toString() |
public EvenClusterLoadPlanBrokerStats(int brokerId, String host, double diskMB, double diskPercent, double cpuPercent, double leaderNetworkInKBps, double followerNetworkInKBps, double networkOutKBps, double potentialNetworkOutKBps, int leaders, int replicas)
EvenClusterLoadPlanBrokerStats
object.brokerId
- id of the brokerhost
- hostdiskMB
- disk usage in MBdiskPercent
- disk usage percentcpuPercent
- cpu usage percentleaderNetworkInKBps
- leader network inbound traffic in KB/sfollowerNetworkInKBps
- follower network inbound traffic in KB/snetworkOutKBps
- outbound traffic in KB/spotentialNetworkOutKBps
- potential outbound network traffic in KB/sleaders
- number of replicas that it's a leader ofreplicas
- number of replicaspublic int brokerId()
public String host()
public double diskMB()
public double diskPercent()
public double cpuPercent()
public double leaderNetworkInKBps()
public double followerNetworkInKBps()
public double networkOutKBps()
public double potentialNetworkOutKBps()
public int leaders()
public int replicas()
public String getPrintableForm()