def on_start(self, event):
     self.timer    = event.reactor.schedule(5, Timeout(self))
     self.conn     = event.container.connect(self.host)
     self.receiver = event.container.create_receiver(self.conn, self.addr)
     self.sender   = event.container.create_sender(self.conn, self.addr)
Ejemplo n.º 2
0
 def on_start(self, event):
     self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.sender_conn = event.container.connect(self.sender_host)
     self.sender = event.container.create_sender(self.sender_conn,
                                                 self.addr)
Ejemplo n.º 3
0
 def on_start(self, event):
     self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.receiver_conn = event.container.connect(self.receiver_host)
Ejemplo n.º 4
0
 def on_start(self, event):
     self.timer    = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.conn     = event.container.connect(self.host)
     self.receiver = event.container.create_receiver(self.conn, self.address)
     self.receiver.flow(3)
     self.n_credit_given = 3
Ejemplo n.º 5
0
 def timeout(self, name):
     if name == 'send':
         self.send()
         if not self.sent_queries:
             self.test_timer = self.reactor.schedule(
                 1, Timeout(self, "send"))
Ejemplo n.º 6
0
 def on_start(self, event):
     self.timer = event.reactor.schedule(5.0, Timeout(self))
     self.receiver_conn = event.container.connect(self.receiver_host)
     self.sender_conn = event.container.connect(self.sender_host)
     self.receiver = event.container.create_receiver(self.receiver_conn,
                                                     dynamic=True)
Ejemplo n.º 7
0
 def on_start(self, event):
     self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.first_conn = event.container.connect(self.first_host)
     self.second_conn = event.container.connect(self.second_host)
 def on_start(self, event):
     self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.conn1 = event.container.connect(self.address1)
     self.conn2 = event.container.connect(self.address2)
     self.sender = event.container.create_sender(self.conn1, self.dest)
     self.receiver = event.container.create_receiver(self.conn2, self.dest)
Ejemplo n.º 9
0
 def on_start(self, event):
     self.timer = event.reactor.schedule(10.0, Timeout(self))
     self.interior_conn = event.container.connect(self.interior_host)
     self.edge_conn = event.container.connect(self.edge_host)
     self.reply_receiver = event.container.create_receiver(
         self.interior_conn, dynamic=True)
Ejemplo n.º 10
0
 def on_start(self, event):
     self.reactor     = event.reactor
     self.timer       = event.reactor.schedule(7.0, Timeout(self))
     self.conn        = event.container.connect(self.host)
     self.last_action = "on_start"
 def on_start(self, event):
     self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
     self.receiver_conn = event.container.connect(self.receiver_addr)
     self.receiver = event.container.create_receiver(
         self.receiver_conn, self.dest)
 def on_start(self, event):
     self.timer         = event.reactor.schedule(10.0, Timeout(self))
     self.sender_conn   = event.container.connect(self.sender_host)
     self.receiver_conn = event.container.connect(self.receiver_host)
     self.sender1       = event.container.create_sender(self.sender_conn, self.address, name="S1")
     self.receiver      = event.container.create_receiver(self.receiver_conn, self.address)
 def on_start(self, event):
     self.timer = event.reactor.schedule(5, Timeout(self))
     self.conn1 = event.container.connect(self.address1)
     self.conn2 = event.container.connect(self.address2)
     self.receiver = event.container.create_receiver(self.conn2, self.dest)
     self.receiver.flow(self.n_expected)
    def on_start(self, event):
        self.timer = event.reactor.schedule(TIMEOUT, Timeout(self))
        self.sender_conn = event.container.connect(self.sender_addr)

        # Note that there are no receivers. All messages sent to this address will be dropped
        self.sender = event.container.create_sender(self.sender_conn, self.dest)