Mark McLoughlin 361092a488 Add a Notifier.prepare() method
Nova sends notifications with a bunch of different publisher_ids, so we
instantiate quite a lot of Notifier objects. Loading the noification
drivers for each of these is a substantial amount of overhead.

One obvious answer would be to make publisher_id an argument to the
error(), info(), etc. methods, but I think it's nice to encapsulate the
publisher_id in a notifier instance.

Instead, add a prepare() method which mirrors the approach in RPCClient.
You use this method to create a specialized notifier instance with a new
publisher_id.

Change-Id: Ia45fda3164086bb7a9ef6dee0587f726ab8b1a97
2013-08-21 07:30:49 +01:00
2013-08-21 07:30:49 +01:00
2013-08-21 07:30:49 +01:00
2013-07-27 15:49:48 +01:00
2013-08-12 14:35:33 +01:00
2013-06-24 12:52:30 +01:00

Oslo Messaging Library

The Oslo messaging API supports RPC and notifications over a number of different messsaging transports.

Description
OpenStack library for messaging
Readme 36 MiB
Languages
Python 99.8%
Shell 0.2%