本文整理汇总了Python中OVirtAgentLogic.AgentLogicBase类的典型用法代码示例。如果您正苦于以下问题:Python AgentLogicBase类的具体用法?Python AgentLogicBase怎么用?Python AgentLogicBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AgentLogicBase类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self, config):
AgentLogicBase.__init__(self, config)
self.dr = LinuxDataRetriver()
self.dr.app_list = config.get("general", "applications_list")
self.dr.ignored_fs = set(config.get("general", "ignored_fs").split())
self.commandHandler = CommandHandlerLinux(self)
self.cred_server = CredServer()
示例2: run
def run(self):
logging.debug("WinVdsAgent:: run() entered")
try:
self.disable_screen_saver()
AgentLogicBase.run(self)
except:
logging.exception("WinVdsAgent::run")
示例3: __init__
def __init__(self, config):
AgentLogicBase.__init__(self, config)
self.dr = LinuxDataRetriver()
self.dr.app_list = config.get("general", "applications_list")
self.dr.ignored_nics = config.get("general", "ignored_nics")
self.dr.ignored_fs = set(config.get("general", "ignored_fs").split())
self.dr.ignore_zero_size_fs = config.get("general",
"ignore_zero_size_fs")
self.commandHandler = CommandHandlerLinux(self)
self.cred_server = CredServer()
self.hooks = Hooks(logging.getLogger('Hooks'),
_GUEST_HOOKS_CONFIG_PATH)
示例4: doWork
def doWork(self):
# CoInitializeEx() should be called in multi-threading program
# according to msdn document.
pythoncom.CoInitializeEx(0)
AgentLogicBase.doWork(self)
示例5: __init__
def __init__(self, config):
AgentLogicBase.__init__(self, config)
self.dr = WinDataRetriver()
self.commandHandler = CommandHandlerWin()
示例6: stop
def stop(self):
self.cred_server.join()
AgentLogicBase.stop(self)
示例7: run
def run(self):
self.cred_server.start()
AgentLogicBase.run(self)