summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-07-31 06:15:29 +0000
committerGerrit Code Review <review@openstack.org>2013-07-31 06:15:29 +0000
commite987525dc0207a869e649f9de8ad0a96c2b1a60f (patch)
tree8ca775a6d93caef0026c4fd3aaabaf309aa50914
parent63129309748c7007885a6eed38f81ea7fe271c9c (diff)
parentda539a094da0f4af3d030933867fb73c2d97880f (diff)
downloadoslo-messaging-e987525dc0207a869e649f9de8ad0a96c2b1a60f.tar.gz
Merge "Add initial qpid driver"
-rw-r--r--oslo/messaging/_drivers/impl_qpid.py17
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)