def on_link_opened(self, event): if event.receiver == self.reply_receiver: self.reply_addr = event.receiver.remote_source.address self.proxy = MgmtMsgProxy(self.reply_addr) self.sender = event.container.create_sender(self.sender_conn, self.addr) elif event.sender == self.sender: self.stage = 1 self.process()
def on_link_opened(self, event): if event.receiver == self.reply_receiver: self.reply_addr = event.receiver.remote_source.address self.proxy = MgmtMsgProxy(self.reply_addr) # Create the sender only after the self.proxy is populated. # If the sender was created in the on_start, in some cases, the on_sendable # is called before the on_link_opened and the self.proxy remains empty. # see DISPATCH-1675. # The second error in test_04_delayed_settlement_different_edges_check_interior # is caused due to the first test failure, so this fix will # fix the second failure self.sender_conn = event.container.connect(self.sender_host) self.sender = event.container.create_sender(self.sender_conn, self.addr)
def on_link_opened(self, event): if event.receiver == self.probe_receiver: self.probe_reply = self.probe_receiver.remote_source.address self.proxy = MgmtMsgProxy(self.probe_reply) self.probe_sender = self.container.create_sender( self.conn_a, '$management') elif event.sender == self.probe_sender: ## # Create listeners for an address per count ## self.add_receivers() self.last_action = "started slow creation of receivers" elif event.receiver in self.receivers: self.n_receivers += 1 if self.n_receivers == self.count: self.expect = "not-found" self.probe() self.last_action = "started probe expecting addresses not found"
def on_link_opened(self, event): if event.receiver == self.reply_receiver: self.reply_addr = event.receiver.remote_source.address self.proxy = MgmtMsgProxy(self.reply_addr)