Search in sources :

Example 1 with ApplicationLauncher

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();
    }
}
Also used : ServiceBasedAppLauncher(org.apache.gobblin.runtime.app.ServiceBasedAppLauncher) ApplicationLauncher(org.apache.gobblin.runtime.app.ApplicationLauncher) LocalJobLauncher(org.apache.gobblin.runtime.local.LocalJobLauncher)

Aggregations

ApplicationLauncher (org.apache.gobblin.runtime.app.ApplicationLauncher)1 ServiceBasedAppLauncher (org.apache.gobblin.runtime.app.ServiceBasedAppLauncher)1 LocalJobLauncher (org.apache.gobblin.runtime.local.LocalJobLauncher)1