示例#1
0
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')
示例#3
0
 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))