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)
Ejemplo 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)
Ejemplo n.º 3
0
 def __init__(self, conf, matchmaker):
     super(DealerPublisherDirectStatic, self).__init__(conf, matchmaker)
     self.fanout_sockets = zmq_sockets_manager.SocketsManager(
         conf, matchmaker, zmq.DEALER)
 def __init__(self, conf, matchmaker, sender, receiver):
     sockets_manager = zmq_sockets_manager.SocketsManager(
         conf, matchmaker, zmq.DEALER)
     super(DealerPublisherBase, self).__init__(sockets_manager, sender,
                                               receiver)