def zookeeper(): registry = ZookeeperRegistry('172.19.65.33:2181') registry.subscribe('com.ofpay.demo.api.UserProvider') print registry.get_providers('com.ofpay.demo.api.UserProvider')
def zookeeper(): registry = ZookeeperRegistry('172.19.65.33:2181') registry.subscribe('com.ofpay.demo.api.UserProvider') print registry.get_provides('com.ofpay.demo.api.UserProvider')
def test_zookeeper_registry(self): address = '127.0.0.1:2181' interface = 'dubbo.DubboService' registry = ZookeeperRegistry(address, application_config) registry.subscribe(interface) print(registry.get_providers(interface))