/** * Dump the (sorted) configuration * @param conf config * @return the sorted keyset */ public static Set<String> dumpConf(Configuration conf) { Set<String> keys = sortedConfigKeys(conf); for (String key : keys) { log.info("{}={}", key, conf.get(key)); } return keys; }
/** * Dump the (sorted) configuration * @param conf config * @return the sorted keyset */ public static Set<String> dumpConf(Configuration conf) { Set<String> keys = sortedConfigKeys(conf); for (String key : keys) { log.info("{}={}", key, conf.get(key)); } return keys; }
/** * For testing: dump a configuration * @param conf configuration * @return listing in key=value style */ public static String dumpConfigToString(Configuration conf) { Set<String> sorted = sortedConfigKeys(conf); StringBuilder builder = new StringBuilder(); for (String key : sorted) { builder.append(key) .append("=") .append(conf.get(key)) .append("\n"); } return builder.toString(); }
/** * For testing: dump a configuration * @param conf configuration * @return listing in key=value style */ public static String dumpConfigToString(Configuration conf) { Set<String> sorted = sortedConfigKeys(conf); StringBuilder builder = new StringBuilder(); for (String key : sorted) { builder.append(key) .append("=") .append(conf.get(key)) .append("\n"); } return builder.toString(); }
Set<String> envList = ConfigHelper.sortedConfigKeys(env.entrySet()); StringBuilder builder = new StringBuilder("Environment variables:\n"); for (String key : envList) {
Set<String> envList = ConfigHelper.sortedConfigKeys(env.entrySet()); StringBuilder builder = new StringBuilder("Environment variables:\n"); for (String key : envList) {
Set<String> confKeys = ConfigHelper.sortedConfigKeys(publishedProviderConf);
Set<String> confKeys = ConfigHelper.sortedConfigKeys(publishedProviderConf);