def __init__(self, conf_path=''): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.DEBUG) self.conf = Configure(conf_path).conf self.meta = MetaManager(self.conf['meta-server'], self.conf['meta-root']) self.mmeta = MasterMetaManager(self.conf, self.meta)
class Master(): def __init__(self, conf_path = ''): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level = logging.DEBUG) self.conf = Configure(conf_path).conf self.meta = MetaManager(self.conf['meta-server'], self.conf['meta-root']) self.mmeta = MasterMetaManager(self.conf, self.meta) def register_node(self): self.mmeta.prepare_root_path() self.mmeta.register_master() return True def build_index(self): pass def start_to_serve(self): pass
class Master(): def __init__(self, conf_path=''): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level=logging.DEBUG) self.conf = Configure(conf_path).conf self.meta = MetaManager(self.conf['meta-server'], self.conf['meta-root']) self.mmeta = MasterMetaManager(self.conf, self.meta) def register_node(self): self.mmeta.prepare_root_path() self.mmeta.register_master() return True def build_index(self): pass def start_to_serve(self): pass
def __init__(self, conf_path = ''): logging.basicConfig(format='%(asctime)s - %(levelname)s - %(message)s', level = logging.DEBUG) self.conf = Configure(conf_path).conf self.meta = MetaManager(self.conf['meta-server'], self.conf['meta-root']) self.mmeta = MasterMetaManager(self.conf, self.meta)