public static Config loadStormConfig ( File targetFile ) throws IOException { Map < String , Object > yamlConfig = readYaml ( targetFile ) ; Config stormConf = convertYamlToStormConf ( yamlConfig ) ; // For track update config, has init file path. if ( stormConf . containsKey ( INIT_CONFIG_KEY ) == false ) { String absolutePath = targetFile . getAbsolutePath ( ) ; stormConf . put ( INIT_CONFIG_KEY , absolutePath ) ; } return stormConf ; }
Generate storm config object from the yaml file at specified file .