def __init__(self, conf, poller, server):
     self.reply_sender = zmq_senders.ReplySenderProxy(conf)
     self.sockets_manager = zmq_sockets_manager.SocketsManager(
         conf, server.matchmaker, zmq.DEALER)
     self.host = None
     super(DealerConsumer, self).__init__(conf, poller, server, zmq.DEALER)
     self.connection_updater = ConsumerConnectionUpdater(
         conf, self.matchmaker, self.socket)
     LOG.info(_LI("[%s] Run DEALER consumer"), self.host)
Esempio n. 2
0
 def __init__(self, conf, poller, server):
     self.ack_sender = zmq_senders.AckSenderProxy(conf)
     self.reply_sender = zmq_senders.ReplySenderProxy(conf)
     self.messages_cache = zmq_ttl_cache.TTLCache(
         ttl=conf.oslo_messaging_zmq.rpc_message_ttl)
     self.sockets_manager = zmq_sockets_manager.SocketsManager(
         conf, server.matchmaker, zmq.ROUTER, zmq.DEALER)
     self.host = None
     super(DealerConsumer, self).__init__(conf, poller, server, zmq.DEALER)
     self.connection_updater = ConsumerConnectionUpdater(
         conf, self.matchmaker, self.socket)
     LOG.info(_LI("[%s] Run DEALER consumer"), self.host)