summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-10-16 14:46:56 +0000
committerGerrit Code Review <review@openstack.org>2012-10-16 14:46:56 +0000
commit857699873e7ad024f7d785b0603e3548f9699113 (patch)
treef1c99b5f14f1c2d6500ec6904b4f493638881fa1 /openstack
parentbe105f79c7056861845e7eb7bf8b4851dba2b1dd (diff)
parentd7e6b7b34cd93f6e381adb7ffe63212729c589a9 (diff)
downloadoslo-857699873e7ad024f7d785b0603e3548f9699113.tar.gz
oslo-857699873e7ad024f7d785b0603e3548f9699113.tar.xz
oslo-857699873e7ad024f7d785b0603e3548f9699113.zip
Merge "Revert "Support declare_topic_consumer in impl_zmq""
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/rpc/impl_zmq.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/openstack/common/rpc/impl_zmq.py b/openstack/common/rpc/impl_zmq.py
index 5e373ba..5c9d190 100644
--- a/openstack/common/rpc/impl_zmq.py
+++ b/openstack/common/rpc/impl_zmq.py
@@ -462,20 +462,6 @@ class ZmqProxy(ZmqBaseReactor):
LOG.debug(_("ROUTER RELAY-OUT SUCCEEDED %(data)s") % {'data': data})
-class CallbackReactor(ZmqBaseReactor):
- """
- A consumer class passing messages to a callback
- """
-
- def __init__(self, conf, callback):
- self._cb = callback
- super(CallbackReactor, self).__init__(conf)
-
- def consume(self, sock):
- data = sock.recv()
- self._cb(data[3])
-
-
class ZmqReactor(ZmqBaseReactor):
"""
A consumer class implementing a
@@ -518,21 +504,6 @@ class Connection(rpc_common.Connection):
inaddr = "tcp://%s:%s" % (host, CONF.rpc_zmq_port)
reactor.register(proxy, inaddr, zmq.SUB, in_bind=bind)
- def declare_topic_consumer(self, topic, callback=None,
- queue_name=None):
- """declare_topic_consumer is a private method, but
- it is being used by Quantum (Folsom).
- This has been added compatibility.
- """
- # Only consume on the base topic name.
- topic = topic.split('.', 1)[0]
-
- if CONF.rpc_zmq_host in matchmaker.queues("fanout~%s" % (topic, )):
- return
-
- reactor = CallbackReactor(CONF, callback)
- self._consume_fanout(reactor, topic, None, bind=False)
-
def create_consumer(self, topic, proxy, fanout=False):
# Only consume on the base topic name.
topic = topic.split('.', 1)[0]