use of edu.iu.dsc.tws.tsched.taskscheduler.TaskScheduler in project twister2 by DSC-SPIDAL.
the class TaskExecutor method plan.
/**
* Create an execution plan from the given graph
*
* @param graph task graph
* @return the data set
*/
public ExecutionPlan plan(ComputeGraph graph) {
TaskScheduler taskScheduler = new TaskScheduler();
taskScheduler.initialize(config);
WorkerPlan workerPlan = createWorkerPlan();
TaskSchedulePlan taskSchedulePlan = taskScheduler.schedule(graph, workerPlan);
ExecutionPlanBuilder executionPlanBuilder = new ExecutionPlanBuilder(workerID, workerInfoList, communicator, this.checkpointingClient);
return executionPlanBuilder.build(config, graph, taskSchedulePlan);
}
Aggregations