예제 #1
0
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 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)
예제 #3
0
def subQueue():
    data = json.loads(request.data)
    MQService.subQueue(data)
    res = {}
    res['msg'] = 'ok'
    return json.dumps(res)
def subQueue():
    data = json.loads(request.data)
    MQService.subQueue(data)
    res = {}
    res['msg'] = 'ok'
    return json.dumps(res)