test_class.declarator: zkServer
test_class.modifier: private
test_class.original_string: private TestingServer zkServer;
test_class.type: TestingServer
test_class.var_name: zkServer
test_class.declarator: zookeeperRegistry
test_class.modifier: private
test_class.original_string: private ZookeeperRegistry zookeeperRegistry;
test_class.type: ZookeeperRegistry
test_class.var_name: zookeeperRegistry
test_class.declarator: service = "com.alibaba.dubbo.test.injvmServie"
test_class.modifier: private
test_class.original_string: private String service = "com.alibaba.dubbo.test.injvmServie";
test_class.type: String
test_class.var_name: service
test_class.declarator: serviceUrl = URL.valueOf("zookeeper://zookeeper/" + service + "?notify=false&methods=test1,test2")
test_class.modifier: private
test_class.original_string: private URL serviceUrl = URL.valueOf("zookeeper://zookeeper/" + service + "?notify=false&methods=test1,test2");
test_class.type: URL
test_class.var_name: serviceUrl
test_class.declarator: anyUrl = URL.valueOf("zookeeper://zookeeper/*")
test_class.modifier: private
test_class.original_string: private URL anyUrl = URL.valueOf("zookeeper://zookeeper/*");
test_class.type: URL
test_class.var_name: anyUrl
test_class.declarator: registryUrl
test_class.modifier: private
test_class.original_string: private URL registryUrl;
test_class.type: URL
test_class.var_name: registryUrl
test_class.declarator: zookeeperRegistryFactory
test_class.modifier: private
test_class.original_string: private ZookeeperRegistryFactory zookeeperRegistryFactory;
test_class.type: ZookeeperRegistryFactory
test_class.var_name: zookeeperRegistryFactory
test_class.file: dubbo-registry/dubbo-registry-zookeeper/src/test/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistryTest.java
test_class.identifier: ZookeeperRegistryTest
test_case.body: @Test
      public void testDefaultPort() {
          Assert.assertEquals("10.20.153.10:2181", ZookeeperRegistry.appendDefaultPort("10.20.153.10:0"));
          Assert.assertEquals("10.20.153.10:2181", ZookeeperRegistry.appendDefaultPort("10.20.153.10"));
      }
test_case.class_method_signature: ZookeeperRegistryTest.testDefaultPort()
test_case.full_signature: @Test public void testDefaultPort()
test_case.identifier: testDefaultPort
test_case.invocations: assertEquals appendDefaultPort assertEquals appendDefaultPort
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefaultPort()
focal_class.declarator: logger = LoggerFactory.getLogger(ZookeeperRegistry.class)
focal_class.modifier: private final static
focal_class.original_string: private final static Logger logger = LoggerFactory.getLogger(ZookeeperRegistry.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: DEFAULT_ZOOKEEPER_PORT = 2181
focal_class.modifier: private final static
focal_class.original_string: private final static int DEFAULT_ZOOKEEPER_PORT = 2181;
focal_class.type: int
focal_class.var_name: DEFAULT_ZOOKEEPER_PORT
focal_class.declarator: DEFAULT_ROOT = "dubbo"
focal_class.modifier: private final static
focal_class.original_string: private final static String DEFAULT_ROOT = "dubbo";
focal_class.type: String
focal_class.var_name: DEFAULT_ROOT
focal_class.declarator: root
focal_class.modifier: private final
focal_class.original_string: private final String root;
focal_class.type: String
focal_class.var_name: root
focal_class.declarator: anyServices = new ConcurrentHashSet<String>()
focal_class.modifier: private final
focal_class.original_string: private final Set<String> anyServices = new ConcurrentHashSet<String>();
focal_class.type: Set<String>
focal_class.var_name: anyServices
focal_class.declarator: zkListeners = new ConcurrentHashMap<URL, ConcurrentMap<NotifyListener, ChildListener>>()
focal_class.modifier: private final
focal_class.original_string: private final ConcurrentMap<URL, ConcurrentMap<NotifyListener, ChildListener>> zkListeners = new ConcurrentHashMap<URL, ConcurrentMap<NotifyListener, ChildListener>>();
focal_class.type: ConcurrentMap<URL, ConcurrentMap<NotifyListener, ChildListener>>
focal_class.var_name: zkListeners
focal_class.declarator: zkClient
focal_class.modifier: private final
focal_class.original_string: private final ZookeeperClient zkClient;
focal_class.type: ZookeeperClient
focal_class.var_name: zkClient
focal_class.file: dubbo-registry/dubbo-registry-zookeeper/src/main/java/com/alibaba/dubbo/registry/zookeeper/ZookeeperRegistry.java
focal_class.identifier: ZookeeperRegistry
focal_class.class_method_signature: ZookeeperRegistry.ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
focal_class.full_signature: public  ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
focal_class.identifier: ZookeeperRegistry
focal_class.modifiers: public
focal_class.parameters: (URL url, ZookeeperTransporter zookeeperTransporter)
focal_class.signature:  ZookeeperRegistry(URL url, ZookeeperTransporter zookeeperTransporter)
focal_class.class_method_signature: ZookeeperRegistry.appendDefaultPort(String address)
focal_class.full_signature: static String appendDefaultPort(String address)
focal_class.identifier: appendDefaultPort
focal_class.modifiers: static
focal_class.parameters: (String address)
focal_class.return: String
focal_class.signature: String appendDefaultPort(String address)
focal_class.class_method_signature: ZookeeperRegistry.isAvailable()
focal_class.full_signature: @Override public boolean isAvailable()
focal_class.identifier: isAvailable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isAvailable()
focal_class.class_method_signature: ZookeeperRegistry.destroy()
focal_class.full_signature: @Override public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_class.class_method_signature: ZookeeperRegistry.doRegister(URL url)
focal_class.full_signature: @Override protected void doRegister(URL url)
focal_class.identifier: doRegister
focal_class.modifiers: @Override protected
focal_class.parameters: (URL url)
focal_class.return: void
focal_class.signature: void doRegister(URL url)
focal_class.class_method_signature: ZookeeperRegistry.doUnregister(URL url)
focal_class.full_signature: @Override protected void doUnregister(URL url)
focal_class.identifier: doUnregister
focal_class.modifiers: @Override protected
focal_class.parameters: (URL url)
focal_class.return: void
focal_class.signature: void doUnregister(URL url)
focal_class.class_method_signature: ZookeeperRegistry.doSubscribe(final URL url, final NotifyListener listener)
focal_class.full_signature: @Override protected void doSubscribe(final URL url, final NotifyListener listener)
focal_class.identifier: doSubscribe
focal_class.modifiers: @Override protected
focal_class.parameters: (final URL url, final NotifyListener listener)
focal_class.return: void
focal_class.signature: void doSubscribe(final URL url, final NotifyListener listener)
focal_class.class_method_signature: ZookeeperRegistry.doUnsubscribe(URL url, NotifyListener listener)
focal_class.full_signature: @Override protected void doUnsubscribe(URL url, NotifyListener listener)
focal_class.identifier: doUnsubscribe
focal_class.modifiers: @Override protected
focal_class.parameters: (URL url, NotifyListener listener)
focal_class.return: void
focal_class.signature: void doUnsubscribe(URL url, NotifyListener listener)
focal_class.class_method_signature: ZookeeperRegistry.lookup(URL url)
focal_class.full_signature: @Override public List<URL> lookup(URL url)
focal_class.identifier: lookup
focal_class.modifiers: @Override public
focal_class.parameters: (URL url)
focal_class.return: List<URL>
focal_class.signature: List<URL> lookup(URL url)
focal_class.class_method_signature: ZookeeperRegistry.toRootDir()
focal_class.full_signature: private String toRootDir()
focal_class.identifier: toRootDir
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toRootDir()
focal_class.class_method_signature: ZookeeperRegistry.toRootPath()
focal_class.full_signature: private String toRootPath()
focal_class.identifier: toRootPath
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toRootPath()
focal_class.class_method_signature: ZookeeperRegistry.toServicePath(URL url)
focal_class.full_signature: private String toServicePath(URL url)
focal_class.identifier: toServicePath
focal_class.modifiers: private
focal_class.parameters: (URL url)
focal_class.return: String
focal_class.signature: String toServicePath(URL url)
focal_class.class_method_signature: ZookeeperRegistry.toCategoriesPath(URL url)
focal_class.full_signature: private String[] toCategoriesPath(URL url)
focal_class.identifier: toCategoriesPath
focal_class.modifiers: private
focal_class.parameters: (URL url)
focal_class.return: String[]
focal_class.signature: String[] toCategoriesPath(URL url)
focal_class.class_method_signature: ZookeeperRegistry.toCategoryPath(URL url)
focal_class.full_signature: private String toCategoryPath(URL url)
focal_class.identifier: toCategoryPath
focal_class.modifiers: private
focal_class.parameters: (URL url)
focal_class.return: String
focal_class.signature: String toCategoryPath(URL url)
focal_class.class_method_signature: ZookeeperRegistry.toUrlPath(URL url)
focal_class.full_signature: private String toUrlPath(URL url)
focal_class.identifier: toUrlPath
focal_class.modifiers: private
focal_class.parameters: (URL url)
focal_class.return: String
focal_class.signature: String toUrlPath(URL url)
focal_class.class_method_signature: ZookeeperRegistry.toUrlsWithoutEmpty(URL consumer, List<String> providers)
focal_class.full_signature: private List<URL> toUrlsWithoutEmpty(URL consumer, List<String> providers)
focal_class.identifier: toUrlsWithoutEmpty
focal_class.modifiers: private
focal_class.parameters: (URL consumer, List<String> providers)
focal_class.return: List<URL>
focal_class.signature: List<URL> toUrlsWithoutEmpty(URL consumer, List<String> providers)
focal_class.class_method_signature: ZookeeperRegistry.toUrlsWithEmpty(URL consumer, String path, List<String> providers)
focal_class.full_signature: private List<URL> toUrlsWithEmpty(URL consumer, String path, List<String> providers)
focal_class.identifier: toUrlsWithEmpty
focal_class.modifiers: private
focal_class.parameters: (URL consumer, String path, List<String> providers)
focal_class.return: List<URL>
focal_class.signature: List<URL> toUrlsWithEmpty(URL consumer, String path, List<String> providers)
focal_class.superclass: extends FailbackRegistry
focal_method.body: static String appendDefaultPort(String address) {
          if (address != null && address.length() > 0) {
              int i = address.indexOf(':');
              if (i < 0) {
                  return address + ":" + DEFAULT_ZOOKEEPER_PORT;
              } else if (Integer.parseInt(address.substring(i + 1)) == 0) {
                  return address.substring(0, i + 1) + DEFAULT_ZOOKEEPER_PORT;
              }
          }
          return address;
      }
focal_method.class_method_signature: ZookeeperRegistry.appendDefaultPort(String address)
focal_method.full_signature: static String appendDefaultPort(String address)
focal_method.identifier: appendDefaultPort
focal_method.invocations: length indexOf parseInt substring substring
focal_method.modifiers: static
focal_method.parameters: (String address)
focal_method.return: String
focal_method.signature: String appendDefaultPort(String address)