Search in sources :

Example 6 with ParallelEnvironment

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;
}
Also used : ParallelEnvironment(org.ow2.proactive.scheduler.common.task.ParallelEnvironment) TaskFlowJob(org.ow2.proactive.scheduler.common.job.TaskFlowJob) JavaTask(org.ow2.proactive.scheduler.common.task.JavaTask)

Example 7 with ParallelEnvironment

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;
}
Also used : ParallelEnvironment(org.ow2.proactive.scheduler.common.task.ParallelEnvironment) TaskFlowJob(org.ow2.proactive.scheduler.common.job.TaskFlowJob) JavaTask(org.ow2.proactive.scheduler.common.task.JavaTask) EmptyTask(org.ow2.proactive.scheduler.examples.EmptyTask)

Aggregations

ParallelEnvironment (org.ow2.proactive.scheduler.common.task.ParallelEnvironment)5 ThresholdProximityDescriptor (org.ow2.proactive.topology.descriptor.ThresholdProximityDescriptor)4 TopologyDescriptor (org.ow2.proactive.topology.descriptor.TopologyDescriptor)4 JavaTask (org.ow2.proactive.scheduler.common.task.JavaTask)3 FileNotFoundException (java.io.FileNotFoundException)2 XMLStreamException (javax.xml.stream.XMLStreamException)2 VerifierConfigurationException (org.iso_relax.verifier.VerifierConfigurationException)2 JobCreationException (org.ow2.proactive.scheduler.common.exception.JobCreationException)2 JobValidationException (org.ow2.proactive.scheduler.common.exception.JobValidationException)2 TaskFlowJob (org.ow2.proactive.scheduler.common.job.TaskFlowJob)2 ImmutableMap (com.google.common.collect.ImmutableMap)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1 Test (org.junit.Test)1 NativeTask (org.ow2.proactive.scheduler.common.task.NativeTask)1 ScriptTask (org.ow2.proactive.scheduler.common.task.ScriptTask)1 Task (org.ow2.proactive.scheduler.common.task.Task)1 EmptyTask (org.ow2.proactive.scheduler.examples.EmptyTask)1 InternalTask (org.ow2.proactive.scheduler.task.internal.InternalTask)1