コード例 #1
0
 def __init__(self, messaging):
     self._messaging = messaging
     self._strategy_context = default_context.DefaultStrategyContext()
     self._planner_manager = planner_manager.PlannerManager()
     self._planner = None
コード例 #2
0
 def test_load(self):
     cfg.CONF.set_override('planner', "weight", group='watcher_planner')
     manager = planner.PlannerManager()
     selected_planner = cfg.CONF.watcher_planner.planner
     self.assertIsInstance(manager.load(selected_planner),
                           weight.WeightPlanner)
コード例 #3
0
 def test_load(self):
     cfg.CONF.set_override('planner', "default", group='watcher_planner')
     manager = planner.PlannerManager()
     self.assertIsInstance(manager.load(), default.DefaultPlanner)
コード例 #4
0
ファイル: default.py プロジェクト: icclab/watcher
 def __init__(self, messaging):
     super(DefaultAuditHandler, self).__init__()
     self._messaging = messaging
     self._strategy_context = default_context.DefaultStrategyContext()
     self._planner_manager = planner_manager.PlannerManager()
     self._planner = None
コード例 #5
0
ファイル: base.py プロジェクト: sjamgade/watcher
 def __init__(self):
     super(AuditHandler, self).__init__()
     self._strategy_context = default_context.DefaultStrategyContext()
     self._planner_manager = planner_manager.PlannerManager()
     self._planner = None
     self.applier_client = rpcapi.ApplierAPI()