use of org.apache.gobblin.runtime.app.ApplicationLauncher in project incubator-gobblin by apache.
the class GobblinLocalJobLauncherUtils method invokeLocalJobLauncher.
public static void invokeLocalJobLauncher(Properties properties) throws Exception {
try (ApplicationLauncher applicationLauncher = new ServiceBasedAppLauncher(properties, properties.getProperty(ServiceBasedAppLauncher.APP_NAME, "CliLocalJob-" + UUID.randomUUID()))) {
applicationLauncher.start();
try (LocalJobLauncher localJobLauncher = new LocalJobLauncher(properties)) {
localJobLauncher.launchJob(null);
}
applicationLauncher.stop();
}
}
Aggregations