use of edu.iu.dsc.tws.executor.core.ExecutionRuntime in project twister2 by DSC-SPIDAL.
the class StreamingAllSharingExecutor2 method execute.
public boolean execute() {
executionHook.beforeExecution();
// lets create the runtime object
ExecutionRuntime runtime = new ExecutionRuntime(ExecutorContext.jobName(config), plan, channel);
// updated config
this.config = Config.newBuilder().putAll(config).put(ExecutorContext.TWISTER2_RUNTIME_OBJECT, runtime).build();
// go through the instances
return runExecution();
}
use of edu.iu.dsc.tws.executor.core.ExecutionRuntime in project twister2 by DSC-SPIDAL.
the class StreamingAllSharingExecutor2 method iExecute.
public IExecution iExecute() {
executionHook.beforeExecution();
// lets create the runtime object
ExecutionRuntime runtime = new ExecutionRuntime(ExecutorContext.jobName(config), plan, channel);
// updated config
this.config = Config.newBuilder().putAll(config).put(ExecutorContext.TWISTER2_RUNTIME_OBJECT, runtime).build();
// go through the instances
return runIExecution();
}
use of edu.iu.dsc.tws.executor.core.ExecutionRuntime in project twister2 by DSC-SPIDAL.
the class ThreadSharingExecutor method iExecute.
public IExecution iExecute() {
executionHook.beforeExecution();
// lets create the runtime object
ExecutionRuntime runtime = new ExecutionRuntime(ExecutorContext.jobName(config), executionPlan, channel);
// updated config
this.config = Config.newBuilder().putAll(config).put(ExecutorContext.TWISTER2_RUNTIME_OBJECT, runtime).build();
// go through the instances
return runIExecution();
}
use of edu.iu.dsc.tws.executor.core.ExecutionRuntime in project twister2 by DSC-SPIDAL.
the class GraphDataSource method prepare.
@Override
public void prepare(Config cfg, TaskContext context) {
super.prepare(cfg, context);
ExecutionRuntime runtime = (ExecutionRuntime) cfg.get(ExecutorContext.TWISTER2_RUNTIME_OBJECT);
this.source = runtime.createInput(cfg, context, new LocalFixedInputPartitioner(new Path(getDataDirectory()), context.getParallelism(), cfg, dsize));
}
use of edu.iu.dsc.tws.executor.core.ExecutionRuntime in project twister2 by DSC-SPIDAL.
the class StreamingAllSharingExecutor method iExecute.
public IExecution iExecute() {
executionHook.beforeExecution();
// lets create the runtime object
ExecutionRuntime runtime = new ExecutionRuntime(ExecutorContext.jobName(config), plan, channel);
// updated config
this.config = Config.newBuilder().putAll(config).put(ExecutorContext.TWISTER2_RUNTIME_OBJECT, runtime).build();
// go through the instances
return runIExecution();
}
Aggregations