for (int j = i; j < i + 3; ++j) {
placementPreference.addToNodes(preferredNodes.get(j).getAddress().getHostAddress());
}
String id = "constrained test task " + i;
constrainedTaskIds.add(id);
tasks.add(new TTaskSpec(id, placementPreference, message));
}
String unconstrainedTaskId = "unconstrained test task";
tasks.add(new TTaskSpec(unconstrainedTaskId, null, message));
TUserGroupInfo user = new TUserGroupInfo(USER, GROUP, PRIORITY);
TSchedulingRequest schedulingRequest = new TSchedulingRequest(APP_ID, tasks, user);
// Create list of available backend nodes, with some additional nodes in additional to the