@staticmethod
def get_servings_from_zookeeper(path, hosts):
    try:
        zk = CenterConfig.get_zk(hosts)
        zk.start()
        nodes = zk.get_children(path)
        CenterConfig.SERVERS = nodes_unquote(nodes)
        zk.stop()
        return CenterConfig.SERVERS
    except Exception as e:
        raise Exception('loading servings node  failed from zookeeper: {}'.format(e))
@staticmethod
def get_servings_from_zookeeper(path, hosts):
    try:
        zk = CenterConfig.get_zk(hosts)
        zk.start()
        nodes = zk.get_children(path)
        CenterConfig.SERVERS = nodes_unquote(nodes)
        zk.stop()
        return CenterConfig.SERVERS
    except Exception as e:
        raise Exception('loading servings node  failed from zookeeper: {}'.format(e))