Search in sources :

Example 1 with YamlConfigModule

use of org.bitbucket.kilda.storm.topology.guice.module.YamlConfigModule in project open-kilda by telstra.

the class AbstractTopologyRunner method startup.

public static void startup(Class<? extends AbstractTopologyRunner> klass, Module module) {
    String overridesFile = null;
    if (System.getProperty("storm.topology.config.overrides.file") != null) {
        overridesFile = System.getProperty("storm.topology.config.overrides.file");
    } else {
        overridesFile = klass.getResource("kilda-overrides.yml").getPath();
    }
    Injector injector = Guice.createInjector(new YamlConfigModule(overridesFile), module);
    AbstractTopologyRunner runner = injector.getInstance(klass);
    runner.run();
}
Also used : YamlConfigModule(org.bitbucket.kilda.storm.topology.guice.module.YamlConfigModule) Injector(com.google.inject.Injector)

Aggregations

Injector (com.google.inject.Injector)1 YamlConfigModule (org.bitbucket.kilda.storm.topology.guice.module.YamlConfigModule)1