Coverage for watcher/applier/manager.py: 100%
26 statements
« prev ^ index » next coverage.py v7.8.2, created at 2025-06-17 12:22 +0000
« 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# Copyright (c) 2016 Intel Corp
4#
5# Authors: Jean-Emile DARTOIS <jean-emile.dartois@b-com.com>
6#
7# Licensed under the Apache License, Version 2.0 (the "License");
8# you may not use this file except in compliance with the License.
9# You may obtain a copy of the License at
10#
11# http://www.apache.org/licenses/LICENSE-2.0
12#
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS,
15# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
16# implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19#
21from watcher.applier.messaging import trigger
22from watcher.common import service_manager
24from watcher import conf
26CONF = conf.CONF
29class ApplierManager(service_manager.ServiceManager):
31 @property
32 def service_name(self):
33 return 'watcher-applier'
35 @property
36 def api_version(self):
37 return '1.0'
39 @property
40 def publisher_id(self):
41 return CONF.watcher_applier.publisher_id
43 @property
44 def conductor_topic(self):
45 return CONF.watcher_applier.conductor_topic
47 @property
48 def notification_topics(self):
49 return []
51 @property
52 def conductor_endpoints(self):
53 return [trigger.TriggerActionPlan]
55 @property
56 def notification_endpoints(self):
57 return []