use of org.apache.gobblin.runtime.TaskExecutor in project incubator-gobblin by apache.
the class GobblinHelixTaskTest method setUp.
@BeforeClass
public void setUp() throws IOException {
Configuration configuration = new Configuration();
configuration.setInt(ConfigurationKeys.TASK_EXECUTOR_THREADPOOL_SIZE_KEY, 1);
this.taskExecutor = new TaskExecutor(configuration);
this.helixManager = Mockito.mock(HelixManager.class);
Mockito.when(this.helixManager.getInstanceName()).thenReturn(GobblinHelixTaskTest.class.getSimpleName());
this.taskStateTracker = new GobblinHelixTaskStateTracker(new Properties());
this.localFs = FileSystem.getLocal(configuration);
this.appWorkDir = new Path(GobblinHelixTaskTest.class.getSimpleName());
this.taskOutputDir = new Path(this.appWorkDir, "output");
}
use of org.apache.gobblin.runtime.TaskExecutor in project incubator-gobblin by apache.
the class SingleTaskRunner method getServices.
private void getServices() {
final Properties properties = ConfigUtils.configToProperties(this.clusterConfig);
this.taskExecutor = new TaskExecutor(properties);
this.taskStateTracker = new GobblinHelixTaskStateTracker(properties);
final List<Service> services = Lists.newArrayList(this.taskExecutor, this.taskStateTracker);
this.serviceManager = new ServiceManager(services);
}
Aggregations