def __init__(self, conf, matchmaker): sender = zmq_senders.RequestSenderProxy(conf) receiver = zmq_receivers.ReplyReceiverDirect(conf) super(DealerPublisherProxyDynamic, self).__init__(conf, matchmaker, sender, receiver) self.publishers = set() self.updater = DynamicPublishersUpdater(conf, matchmaker, self.publishers) self.updater.update_publishers()
def __init__(self, conf, matchmaker): sender = zmq_senders.RequestSenderProxy(conf) receiver = zmq_receivers.ReplyReceiverProxy(conf) super(DealerPublisherProxy, self).__init__(conf, matchmaker, sender, receiver) self.socket = self.sockets_manager.get_socket_to_publishers() self.routing_table = zmq_routing_table.RoutingTable(self.conf, self.matchmaker) self.connection_updater = \ PublisherConnectionUpdater(self.conf, self.matchmaker, self.socket)
def __init__(self, conf, matchmaker): sender = zmq_senders.RequestSenderProxy(conf) receiver = zmq_receivers.ReceiverProxy(conf) super(DealerPublisherProxy, self).__init__(conf, matchmaker, sender, receiver) self.socket = self.sockets_manager.get_socket_to_publishers( self._generate_identity()) self.routing_table = zmq_routing_table.RoutingTableAdaptor( conf, matchmaker, zmq.DEALER) self.connection_updater = PublisherConnectionUpdater( self.conf, self.matchmaker, self.socket)
def __init__(self, conf, matchmaker): sender = zmq_senders.RequestSenderProxy(conf) if conf.oslo_messaging_zmq.rpc_use_acks: receiver = zmq_receivers.AckAndReplyReceiverProxy(conf) else: receiver = zmq_receivers.ReplyReceiverProxy(conf) super(DealerPublisherProxy, self).__init__(conf, matchmaker, sender, receiver) self.socket = self.sockets_manager.get_socket_to_publishers( self._generate_identity()) self.routing_table = zmq_routing_table.RoutingTable( self.conf, self.matchmaker) self.connection_updater = \ PublisherConnectionUpdater(self.conf, self.matchmaker, self.socket)