Coverage for watcher/decision_engine/loading/default.py: 100%

19 statements  

« prev     ^ index     » next       coverage.py v7.8.2, created at 2025-06-17 12:22 +0000

1# -*- encoding: utf-8 -*- 

2# Copyright (c) 2015 b<>com 

3# 

4# Authors: Jean-Emile DARTOIS <jean-emile.dartois@b-com.com> 

5# Vincent FRANCOISE <vincent.francoise@b-com.com> 

6# Tomasz Kaczynski <tomasz.kaczynski@intel.com> 

7# 

8# Licensed under the Apache License, Version 2.0 (the "License"); 

9# you may not use this file except in compliance with the License. 

10# You may obtain a copy of the License at 

11# 

12# http://www.apache.org/licenses/LICENSE-2.0 

13# 

14# Unless required by applicable law or agreed to in writing, software 

15# distributed under the License is distributed on an "AS IS" BASIS, 

16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 

17# implied. 

18# See the License for the specific language governing permissions and 

19# limitations under the License. 

20# 

21 

22from watcher.common.loader import default 

23 

24 

25class DefaultStrategyLoader(default.DefaultLoader): 

26 def __init__(self): 

27 super(DefaultStrategyLoader, self).__init__( 

28 namespace='watcher_strategies') 

29 

30 

31class DefaultGoalLoader(default.DefaultLoader): 

32 def __init__(self): 

33 super(DefaultGoalLoader, self).__init__( 

34 namespace='watcher_goals') 

35 

36 

37class DefaultPlannerLoader(default.DefaultLoader): 

38 def __init__(self): 

39 super(DefaultPlannerLoader, self).__init__( 

40 namespace='watcher_planners') 

41 

42 

43class ClusterDataModelCollectorLoader(default.DefaultLoader): 

44 def __init__(self): 

45 super(ClusterDataModelCollectorLoader, self).__init__( 

46 namespace='watcher_cluster_data_model_collectors') 

47 

48 

49class DefaultScoringLoader(default.DefaultLoader): 

50 def __init__(self): 

51 super(DefaultScoringLoader, self).__init__( 

52 namespace='watcher_scoring_engines') 

53 

54 

55class DefaultScoringContainerLoader(default.DefaultLoader): 

56 def __init__(self): 

57 super(DefaultScoringContainerLoader, self).__init__( 

58 namespace='watcher_scoring_engine_containers')