Github user revans2 commented on a diff in the pull request: https://github.com/apache/storm/pull/2083#discussion_r117245034 --- Diff: storm-client/src/jvm/org/apache/storm/utils/ConfigUtils.java --- @@ -313,6 +317,33 @@ public static File getWorkerDirFromRoot(String logRoot, String id, Integer port) return new File((logRoot + FILE_SEPARATOR + id + FILE_SEPARATOR + port)); } + /** + * Get the given config value as a List <String>, if possible. + * @param name - the config key + * @param conf - the config map + * @return - the config value converted to a List <String> if found, otherwise null. + * @throws IllegalArgumentException if conf is null + * @throws NullPointerException if name is null and the conf map doesn't support null keys + */ + public static List<String> getValueAsList(String name, Map<?, ?> conf) { --- End diff -- Minor nit: we tend to use Map<String, Object> for conf.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---