dubbo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] HouZhiHouJue commented on issue #1508: feature required: set registrydirectory to AP when implementation is CP
Date Sun, 08 Apr 2018 03:43:14 GMT
HouZhiHouJue commented on issue #1508: feature required: set registrydirectory to AP when implementation
is CP
URL: https://github.com/apache/incubator-dubbo/issues/1508#issuecomment-379517607
 
 
   ` ChildListener zkListener = listeners.get(listener);
   
                       if (zkListener == null) {
   
                           listeners.putIfAbsent(listener, new ChildListener() {
   
                               public void childChanged(String parentPath, List<String>
currentChilds) {
   
                                   ZookeeperRegistry.this.notify(url, listener, toUrlsWithEmpty(url,
parentPath, currentChilds));
   
                               }
   
                           });
   
                           zkListener = listeners.get(listener);
   
                       }
   
                       zkClient.create(path, false);
   
                       List<String> children = zkClient.addChildListener(path, zkListener);
   
                       if (children != null) {
   
                           urls.addAll(toUrlsWithEmpty(url, path, children));
   
                       }`
   
   zookeeper ,sorry to did not say clearly at the beginning

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