diff options
author | Jenkins <jenkins@review.openstack.org> | 2013-07-31 06:15:29 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2013-07-31 06:15:29 +0000 |
commit | e987525dc0207a869e649f9de8ad0a96c2b1a60f (patch) | |
tree | 8ca775a6d93caef0026c4fd3aaabaf309aa50914 | |
parent | 63129309748c7007885a6eed38f81ea7fe271c9c (diff) | |
parent | da539a094da0f4af3d030933867fb73c2d97880f (diff) | |
download | oslo-messaging-e987525dc0207a869e649f9de8ad0a96c2b1a60f.tar.gz |
Merge "Add initial qpid driver"
-rw-r--r-- | oslo/messaging/_drivers/impl_qpid.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/oslo/messaging/_drivers/impl_qpid.py b/oslo/messaging/_drivers/impl_qpid.py index afc7679..aacb130 100644 --- a/oslo/messaging/_drivers/impl_qpid.py +++ b/oslo/messaging/_drivers/impl_qpid.py @@ -25,8 +25,9 @@ import eventlet import greenlet from oslo.config import cfg -from oslo.messaging._drivers.rpc import amqp as rpc_amqp -from oslo.messaging._drivers.rpc import common as rpc_common +from oslo.messaging._drivers import amqp as rpc_amqp +from oslo.messaging._drivers import amqpdriver +from oslo.messaging._drivers import common as rpc_common from oslo.messaging.openstack.common import excutils from oslo.messaging.openstack.common import importutils from oslo.messaging.openstack.common import jsonutils @@ -737,3 +738,15 @@ def notify(conf, context, topic, msg, envelope): def cleanup(): return rpc_amqp.cleanup(Connection.pool) + + +class QpidDriver(amqpdriver.AMQPDriverBase): + + def __init__(self, conf, url=None, default_exchange=None): + conf.register_opts(qpid_opts) + conf.register_opts(rpc_amqp.amqp_opts) + + connection_pool = rpc_amqp.get_connection_pool(conf, Connection) + + super(QpidDriver, self).__init__(conf, connection_pool, + url, default_exchange) |