Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
 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)