Exemple #1
0
    def __init__(self, rootpath, dddfs_dir):
        self.rootpath = os.path.abspath(rootpath)
        self.dddfs_dir = dddfs_dir
        
        """Check directory for meta data files.
        """
        if os.access(self.rootpath,
                     os.R_OK and os.W_OK and os.X_OK) == False:
            sys.exit("%s is not permitted to use. " % (self.rootpath, ))

        DRDFSLog.init("meta", DRDFSLog.DEBUG)
        DRDFSLog.info("** DRDFS metadata server init **")
        DRDFSLog.debug("rootpath = " + self.rootpath)

        # for replication
        if conf.replication == True:
            self.repl_info = ReplicationManager.ReplicationManager()
        self.cluster_info = cluster.DDDFSNodesInfo(
            os.path.join(self.dddfs_dir, 'conf', conf.cluster_conf_file))

        self.access_info = chooseDataNode.FileAccessInfo()

        self.delfiles_q = Queue.Queue()
        self.datalist = []
        self.repq = Queue.Queue()
Exemple #2
0
    def fsinit(self):
        """Called before fs.main() called.
        """
        DRDFSLog.info("** DRDFS FS init **")

        DRDFSLog.debug("Success in creating connection to metadata server")
        DRDFSLog.debug("Init complete!!")
        collector_thread = self.thread_collector(daemons)
        collector_thread.start()
        threads_count = 0
Exemple #3
0
    def fsinit(self):
        """Called before fs.main() called.
        """
        DRDFSLog.info("** DRDFS FS init **")

        DRDFSLog.debug("Success in creating connection to metadata server")
        DRDFSLog.debug("Init complete!!")
        collector_thread = self.thread_collector(daemons)
        collector_thread.start()
        threads_count = 0
Exemple #4
0
    def __init__(self, rootpath, dddfs_dir):
        self.rootpath = os.path.abspath(rootpath)
        self.dddfs_dir = dddfs_dir
        """Check directory for meta data files.
        """
        if os.access(self.rootpath, os.R_OK and os.W_OK and os.X_OK) == False:
            sys.exit("%s is not permitted to use. " % (self.rootpath, ))

        DRDFSLog.init("meta", DRDFSLog.DEBUG)
        DRDFSLog.info("** DRDFS metadata server init **")
        DRDFSLog.debug("rootpath = " + self.rootpath)

        # for replication
        self.repl_info = ReplicationManager.ReplicationManager()
        self.cluster_info = cluster.DDDFSNodesInfo(
            os.path.join(self.dddfs_dir, 'conf', conf.cluster_conf_file))

        self.access_info = chooseDataNode.FileAccessInfo()

        self.delfiles_q = Queue.Queue()
        self.datalist = []
        self.repq = Queue.Queue()
Exemple #5
0
 def finalize(self, ):
     """Finalize of FS
     This seems not to be called implicitly...
     """
     m_channel.brk_channel()
     DRDFSLog.info("** DRDFS Unmount **")
Exemple #6
0
 def finalize(self,):
     """Finalize of FS
     This seems not to be called implicitly...
     """
     m_channel.brk_channel()
     DRDFSLog.info("** DRDFS Unmount **")