예제 #1
0
파일: plugin.py 프로젝트: jshayne/apmec
 def __init__(self):
     super(MEMPlugin, self).__init__()
     self._pool = eventlet.GreenPool()
     self.boot_wait = cfg.CONF.apmec.boot_wait
     self.vim_client = vim_client.VimClient()
     self._mea_manager = driver_manager.DriverManager(
         'apmec.apmec.mem.drivers', cfg.CONF.apmec.infra_driver)
     self._mea_action = driver_manager.DriverManager(
         'apmec.apmec.policy.actions', cfg.CONF.apmec.policy_action)
     self._mea_monitor = monitor.MEAMonitor(self.boot_wait)
     self._mea_alarm_monitor = monitor.MEAAlarmMonitor()
예제 #2
0
 def __init__(self):
     super(MeoPlugin, self).__init__()
     self._pool = eventlet.GreenPool()
     self._vim_drivers = driver_manager.DriverManager(
         'apmec.meo.vim.drivers',
         cfg.CONF.meo_vim.vim_drivers)
     self.vim_client = vim_client.VimClient()
예제 #3
0
    def __init__(self, boot_wait, check_intvl=None):
        self._monitor_manager = driver_manager.DriverManager(
            'apmec.apmec.monitor.drivers', cfg.CONF.apmec.monitor_driver)

        self.boot_wait = boot_wait
        if check_intvl is None:
            check_intvl = cfg.CONF.monitor.check_intvl
        self._status_check_intvl = check_intvl
        LOG.debug('Spawning MEA monitor thread')
        threading.Thread(target=self.__run__).start()
예제 #4
0
파일: plugin.py 프로젝트: jshayne/apmec
 def __init__(self):
     super(MEMMgmtMixin, self).__init__()
     self._mgmt_manager = driver_manager.DriverManager(
         'apmec.apmec.mgmt.drivers', cfg.CONF.apmec.mgmt_driver)
예제 #5
0
 def __init__(self):
     self._alarm_monitor_manager = driver_manager.DriverManager(
         'apmec.apmec.alarm_monitor.drivers',
         cfg.CONF.apmec.alarm_monitor_driver)