Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 def __init__(self, config, install_dir):
     AgentLogicBase.__init__(self, config)
     self.dr = WinDataRetriver()
     self.commandHandler = CommandHandlerWin()
     hooks_dir = os.path.join(install_dir, 'hooks')
     self.hooks = Hooks(logging.getLogger('Hooks'), hooks_dir)
     set_bcd_useplatformclock()
Ejemplo n.º 3
0
 def run(self):
     logging.debug("WinVdsAgent:: run() entered")
     try:
         self.disable_screen_saver()
         AgentLogicBase.run(self)
     except:
         logging.exception("WinVdsAgent::run")
Ejemplo n.º 4
0
 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()
 def run(self):
     logging.debug("WinVdsAgent:: run() entered")
     try:
         self.disable_screen_saver()
         AgentLogicBase.run(self)
     except:
         logging.exception("WinVdsAgent::run")
Ejemplo n.º 6
0
    def __init__(self, config, install_dir):
        AgentLogicBase.__init__(self, config)
        self.dr = WinDataRetriver()
        self.commandHandler = CommandHandlerWin(self.dr)
        hooks_dir = os.path.join(install_dir, 'hooks')
        self.hooks = Hooks(logging.getLogger('Hooks'), hooks_dir)

        if config.getboolean('general', 'apply_timer_configuration'):
            apply_clock_tuning()
Ejemplo n.º 7
0
    def __init__(self, config, install_dir):
        AgentLogicBase.__init__(self, config)
        self.dr = WinDataRetriver()
        self.commandHandler = CommandHandlerWin()
        hooks_dir = os.path.join(install_dir, 'hooks')
        self.hooks = Hooks(logging.getLogger('Hooks'), hooks_dir)

        if config.getboolean('general', 'apply_timer_configuration'):
            apply_clock_tuning()
Ejemplo n.º 8
0
 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.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)
Ejemplo n.º 9
0
 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)
Ejemplo n.º 10
0
 def __init__(self, config):
     AgentLogicBase.__init__(self, config)
     self.dr = WinDataRetriver()
     self.commandHandler = CommandHandlerWin()
Ejemplo n.º 11
0
 def stop(self):
     self.cred_server.join()
     AgentLogicBase.stop(self)
Ejemplo n.º 12
0
 def run(self):
     self.cred_server.start()
     AgentLogicBase.run(self)
 def stop(self):
     self.cred_server.join()
     AgentLogicBase.stop(self)
 def run(self):
     self.cred_server.start()
     AgentLogicBase.run(self)
Ejemplo n.º 15
0
 def __init__(self, config):
     AgentLogicBase.__init__(self, config)
     self.dr = WinDataRetriver()
     self.commandHandler = CommandHandlerWin()
Ejemplo n.º 16
0
 def doWork(self):
     # CoInitializeEx() should be called in multi-threading program
     # according to msdn document.
     pythoncom.CoInitializeEx(0)
     AgentLogicBase.doWork(self)
Ejemplo n.º 17
0
 def doWork(self):
     # CoInitializeEx() should be called in multi-threading program
     # according to msdn document.
     pythoncom.CoInitializeEx(0)
     AgentLogicBase.doWork(self)