groomStatuses.keySet().toArray(hosts);
}
GroomServerStatus serverStatus = this.allocationStrategy
.getGroomToAllocate(groomStatuses, hosts, taskCountInGroomMap,
new BSPResource[0], allTasks[i]);
Task task = allTasks[i].constructTask(serverStatus);
populateAction(task, superstep, serverStatus, actionMap);
} else {
restartTask(allTasks[i], superstep, groomStatuses, actionMap);
}