Implemented applier config module Partially Implements: blueprint centralise-config-opts Change-Id: I237596b06dc3bee318414346cfa58ae4cb81079b
58 lines
1.4 KiB
Python
58 lines
1.4 KiB
Python
# -*- encoding: utf-8 -*-
|
|
# Copyright (c) 2015 b<>com
|
|
# Copyright (c) 2016 Intel Corp
|
|
#
|
|
# Authors: Jean-Emile DARTOIS <jean-emile.dartois@b-com.com>
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
# implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
from watcher.applier.messaging import trigger
|
|
from watcher.common import service_manager
|
|
|
|
from watcher import conf
|
|
|
|
CONF = conf.CONF
|
|
|
|
|
|
class ApplierManager(service_manager.ServiceManager):
|
|
|
|
@property
|
|
def service_name(self):
|
|
return 'watcher-applier'
|
|
|
|
@property
|
|
def api_version(self):
|
|
return '1.0'
|
|
|
|
@property
|
|
def publisher_id(self):
|
|
return CONF.watcher_applier.publisher_id
|
|
|
|
@property
|
|
def conductor_topic(self):
|
|
return CONF.watcher_applier.conductor_topic
|
|
|
|
@property
|
|
def notification_topics(self):
|
|
return []
|
|
|
|
@property
|
|
def conductor_endpoints(self):
|
|
return [trigger.TriggerActionPlan]
|
|
|
|
@property
|
|
def notification_endpoints(self):
|
|
return []
|