Github user revans2 commented on a diff in the pull request:

    https://github.com/apache/storm/pull/2083#discussion_r114172094
  
    --- Diff: storm-client/src/jvm/org/apache/storm/utils/ConfigUtils.java ---
    @@ -313,6 +315,34 @@ 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 String, if possible.
    +     * @param name - the config key
    +     * @param conf - the config map
    +     * @return - the config value converted to a 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 String getConfigValueAsString(String name, Map<?, ?> 
conf) {
    --- End diff --
    
    @hmcc Yes, except the caller should not be converting it to a space 
separated string because it will break some use cases.


---
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.
---

Reply via email to