Search in sources :

Example 1 with TaskScheduler

use of es.bsc.compss.components.impl.TaskScheduler in project compss by bsc-wdc.

the class AllocatableActionTest method setUpClass.

@BeforeClass
public static void setUpClass() {
    ResourceManager.clear(rus);
    // Method resource description and its slots
    int maxSlots = 3;
    Processor p = new Processor();
    p.setComputingUnits(maxSlots);
    description = new MethodResourceDescription();
    description.addProcessor(p);
    // Task Scheduler
    ts = new TaskScheduler();
    // Task Dispatcher
    fao = new FakeActionOrchestrator(ts);
    ts.setOrchestrator(fao);
    // Resource Scheduler
    rs = new FakeResourceScheduler(new FakeWorker(description, maxSlots), null, null);
}
Also used : FakeActionOrchestrator(es.bsc.compss.types.fake.FakeActionOrchestrator) Processor(es.bsc.compss.types.resources.components.Processor) FakeResourceScheduler(es.bsc.compss.types.fake.FakeResourceScheduler) MethodResourceDescription(es.bsc.compss.types.resources.MethodResourceDescription) TaskScheduler(es.bsc.compss.components.impl.TaskScheduler) FakeWorker(es.bsc.compss.types.fake.FakeWorker) BeforeClass(org.junit.BeforeClass)

Aggregations

TaskScheduler (es.bsc.compss.components.impl.TaskScheduler)1 FakeActionOrchestrator (es.bsc.compss.types.fake.FakeActionOrchestrator)1 FakeResourceScheduler (es.bsc.compss.types.fake.FakeResourceScheduler)1 FakeWorker (es.bsc.compss.types.fake.FakeWorker)1 MethodResourceDescription (es.bsc.compss.types.resources.MethodResourceDescription)1 Processor (es.bsc.compss.types.resources.components.Processor)1 BeforeClass (org.junit.BeforeClass)1