def index(): try: addrList = ConfUtil.getMQAddrList() addr = request.args.get('addr', addrList[0]) queues = MQService.getQueues(addr) addrList.remove(addr) addrList.insert(0, addr) except Exception, e: log.error(e)
def subQueue(): data = json.loads(request.data) MQService.subQueue(data) res = {} res['msg'] = 'ok' return json.dumps(res)