225226227228229230231232
private void addDataLocation(FileFragment fragment) { String[] hosts = fragment.getHosts(); int[] diskIds = fragment.getDiskIds(); for (int i = 0; i < hosts.length; i++) { dataLocations.add(new DataLocation(hosts[i], diskIds[i])); } }