use of org.ow2.proactive.scheduler.common.task.ParallelEnvironment in project scheduling by ow2-proactive.
the class SchedulerRuntimeDataMBeanTest method createJobWithMultinodeTask.
private TaskFlowJob createJobWithMultinodeTask(int nodes) throws Exception {
TaskFlowJob job = new TaskFlowJob();
job.setName(this.getClass().getSimpleName() + "_MultinodeTask");
JavaTask task = new JavaTask();
task.setExecutableClassName(FailingTestJavaTask.class.getName());
task.setName("task1");
ParallelEnvironment env = new ParallelEnvironment(nodes);
task.setParallelEnvironment(env);
job.addTask(task);
return job;
}
use of org.ow2.proactive.scheduler.common.task.ParallelEnvironment in project scheduling by ow2-proactive.
the class TestJobSchedulingStarvationAndPriority method createJobHighMoreMultiNode.
/*
* Job high priority with one task and with a required number of nodes greater than currently
* available
*/
private TaskFlowJob createJobHighMoreMultiNode() throws Exception {
TaskFlowJob job = new TaskFlowJob();
job.setName(this.getClass().getSimpleName() + "_High_MoreMultiNode");
job.setPriority(JobPriority.HIGHEST);
JavaTask javaTask = new JavaTask();
javaTask.setExecutableClassName(EmptyTask.class.getName());
javaTask.setName("taskMoreMultiNode");
javaTask.setParallelEnvironment(new ParallelEnvironment(RMTHelper.DEFAULT_NODES_NUMBER + 1));
job.addTask(javaTask);
return job;
}
Aggregations