Beispiel #1
0
    def init(self):
        CoroutineApplication.init(self)
        AmqpManager.instance().init(self.getConfig().get('amqp_config'))

        # AmqpManager.instance().getMessageQueue('mq_mess').open(AccessMode.WRITE)

        AdapterManager.instance().init(self.getConfig().get('adapters'))
Beispiel #2
0
 def run(self):
     if sys.argv[-1] == 'client':
         KafkaManager.instance().getTopic('test').open(WRITE).produce('abc')
         print 'one message be sent out'
     else:
         KafkaManager.instance().getTopic('test').open(READ)
         CoroutineApplication.run(self)
Beispiel #3
0
 def run(self):
     if sys.argv[-1] == 'client':
         AmqpManager.instance().getMessageQueue('test').open(AccessMode.WRITE).produce('abc')
         print 'one message be sent out'
         CoroutineApplication.run(self)
     else:
         AmqpManager.instance().getMessageQueue('test').open(AccessMode.READ)
         CoroutineApplication.run(self)
Beispiel #4
0
 def _terminate(self):
     AmqpManager.instance().terminate()
     CoroutineApplication._terminate(self)
Beispiel #5
0
 def run(self):
     # AmqpManager.instance().getMessageQueue('mq_mess').open(AccessMode.READ)
     CoroutineApplication.run(self)
Beispiel #6
0
 def __init__(self):
     CoroutineApplication.__init__(self)
Beispiel #7
0
 def init(self):
     CoroutineApplication.init(self)
     AmqpManager.instance().init(self.getConfig().get('amqp_config'))
Beispiel #8
0
    def run(self):

        AmqpManager.instance().getMessageQueue('mq_2').open(AccessMode.WRITE)
        AmqpManager.instance().getMessageQueue('mq_3').open(AccessMode.WRITE)
        AmqpManager.instance().getMessageQueue('mq_1').open(AccessMode.READ)
        CoroutineApplication.run(self)
Beispiel #9
0
 def init(self):
     CoroutineApplication.init(self)
     KafkaManager.instance().init(self.getConfig().get('kafka_config'))
Beispiel #10
0
 def init(self):
     CoroutineApplication.init(self)
     AmqpManager.instance().init(self.getConfig().get('amqp_config'))
     Accumulator.instance().init(self.getConfig().get('aggregator'))