/** * Returns disk bandwidth associated with this plan, if none is specified * returns the global default. * * @param item DiskBalancerWorkItem. * @return MB/s - long */ private long getDiskBandwidth(DiskBalancerWorkItem item) { return item.getBandwidth() <= 0 ? this.diskBandwidth : item .getBandwidth(); }