Alarm: Use stevedore to load the service class

A deployer must choice a driver with a name not a python class

This change does that but also keep backward compatibility.

DocImpact
Closes-Bug: #1362006

Change-Id: I41183b1a0c0f07c15efd6e0704a7a281b8ec7284
This commit is contained in:
Mehdi Abaakouk
2014-08-27 12:59:40 +02:00
parent 9af6af5e52
commit 30767d7f2b
4 changed files with 74 additions and 6 deletions

View File

@@ -222,6 +222,13 @@ ceilometer.alarm.evaluator =
threshold = ceilometer.alarm.evaluator.threshold:ThresholdEvaluator
combination = ceilometer.alarm.evaluator.combination:CombinationEvaluator
ceilometer.alarm.evaluator_service =
singleton = ceilometer.alarm.service:SingletonAlarmService
partitioned = ceilometer.alarm.service:PartitionedAlarmService
# NOTE(sileht): for backward compatibility
ceilometer.alarm.service.SingletonAlarmService = ceilometer.alarm.service:SingletonAlarmService
ceilometer.alarm.service.PartitionedAlarmService = ceilometer.alarm.service:PartitionedAlarmService
ceilometer.alarm.notifier =
log = ceilometer.alarm.notifier.log:LogAlarmNotifier
test = ceilometer.alarm.notifier.test:TestAlarmNotifier