예제 #1
0
 def _terminate(self):
     AmqpManager.instance().terminate()
     CoroutineFlaskApplication._terminate(self)
예제 #2
0
 def run(self):
     # AmqpManager.instance().getMessageQueue('mq_mess').open(AccessMode.READ)
     CoroutineFlaskApplication.run(self)
예제 #3
0
 def __init__(self):
     CoroutineFlaskApplication.__init__(self)
예제 #4
0
 def init(self):
     CoroutineFlaskApplication.init(self)
     # AmqpManager.instance().init(self.getConfig().get('amqp_config'))
     cfgs = self.getConfig()
     UserManager.instance().init(cfgs.get('user_service'))
예제 #5
0
 def init(self):
     CoroutineFlaskApplication.init(self)
     AmqpManager.instance().init(self.getConfig().get('amqp_config'))
     TraceService.instance().init(self.getConfig().get('data_tracer'))