本文整理汇总了Python中libs.system.DRDFSLog.info方法的典型用法代码示例。如果您正苦于以下问题:Python DRDFSLog.info方法的具体用法?Python DRDFSLog.info怎么用?Python DRDFSLog.info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libs.system.DRDFSLog
的用法示例。
在下文中一共展示了DRDFSLog.info方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from libs.system import DRDFSLog [as 别名]
# 或者: from libs.system.DRDFSLog import info [as 别名]
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()
示例2: fsinit
# 需要导入模块: from libs.system import DRDFSLog [as 别名]
# 或者: from libs.system.DRDFSLog import info [as 别名]
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
示例3: finalize
# 需要导入模块: from libs.system import DRDFSLog [as 别名]
# 或者: from libs.system.DRDFSLog import info [as 别名]
def finalize(self,):
"""Finalize of FS
This seems not to be called implicitly...
"""
m_channel.brk_channel()
DRDFSLog.info("** DRDFS Unmount **")