Search in sources :

Example 1 with TaskGroupContainerRunner

use of com.alibaba.datax.core.taskgroup.runner.TaskGroupContainerRunner in project DataX by alibaba.

the class ProcessInnerScheduler method startAllTaskGroup.

@Override
public void startAllTaskGroup(List<Configuration> configurations) {
    this.taskGroupContainerExecutorService = Executors.newFixedThreadPool(configurations.size());
    for (Configuration taskGroupConfiguration : configurations) {
        TaskGroupContainerRunner taskGroupContainerRunner = newTaskGroupContainerRunner(taskGroupConfiguration);
        this.taskGroupContainerExecutorService.execute(taskGroupContainerRunner);
    }
    this.taskGroupContainerExecutorService.shutdown();
}
Also used : TaskGroupContainerRunner(com.alibaba.datax.core.taskgroup.runner.TaskGroupContainerRunner) Configuration(com.alibaba.datax.common.util.Configuration)

Aggregations

Configuration (com.alibaba.datax.common.util.Configuration)1 TaskGroupContainerRunner (com.alibaba.datax.core.taskgroup.runner.TaskGroupContainerRunner)1