summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
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]