@Test public void testRegister() throws Exception { URL url = new URL(ServiceType.PROVIDER.getLabel(), DemoService.class.getName()); registry.register(url); new DefaultProtocol().export(DemoService.class.getName(), DemoServiceImp.class); }
@Override public void register(URL url) throws Exception { zookeeperClient.create(url); registerServices.add(url); }
ZookeeperRegistry implements Registry { @Override public void register(URL url) throws Exception { zookeeperClient.create(url); registerServices.add(url); } }
ZookeeperRegistry implements Registry { @Override public void register(URL url) throws Exception { zookeeperClient.create(url); registerServices.add(url); } ZookeeperRegistry(); }
ZookeeperRegistry implements Registry { @Override public void register(URL url) throws Exception { zookeeperClient.create(url); registerServices.add(url); } ZookeeperRegistry(); @Override void register(URL url); @Override void subscribe(final URL consumerUrl, final NotifyListener notifyListener); @Override List<URL> lookup(URL url); void notify(URL consumerURL, NotifyListener listener, List<URL> providerUrls); }
ZookeeperRegistry implements Registry { @Override public void register(URL url) throws Exception { zookeeperClient.create(url); registerServices.add(url); } ZookeeperRegistry(); @Override void register(URL url); @Override void subscribe(final URL consumerUrl, final NotifyListener notifyListener); @Override List<URL> lookup(URL url); void notify(URL consumerURL, NotifyListener listener, List<URL> providerUrls);  }