pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] murong00 commented on a change in pull request #3606: [Issue 3590] [broker] Support to get broker server runtime configuration
Date Sun, 17 Feb 2019 08:13:46 GMT
murong00 commented on a change in pull request #3606: [Issue 3590] [broker] Support to get
broker server runtime configuration
URL: https://github.com/apache/pulsar/pull/3606#discussion_r257493191
 
 

 ##########
 File path: pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
 ##########
 @@ -1336,6 +1337,14 @@ public void onUpdate(String path, Map<String, String> data,
Stat stat) {
         return dynamicConfigurationMap.keys();
     }
 
+    public List<String> getRuntimeConfiguration() {
+        ConcurrentOpenHashMap<String, Object> runtimeConfigurationMap = getRuntimeConfigurationMap();
+        return runtimeConfigurationMap.keys().stream()
+            .sorted()
+            .map(key -> key + "=" + runtimeConfigurationMap.get(key))
 
 Review comment:
   Changed, thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message