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();
}
Aggregations