|
|
@ -117,13 +117,13 @@ public class QueueService extends BaseService { |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (checkQueueExist(queue)) { |
|
|
|
if (checkQueueNameExist(queueName)) { |
|
|
|
putMsg(result, Status.QUEUE_EXIST, queue); |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (checkQueueNameExist(queueName)) { |
|
|
|
if (checkQueueExist(queue)) { |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
putMsg(result, Status.QUEUE_VALUE_EXIST, queue); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -162,24 +162,24 @@ public class QueueService extends BaseService { |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// whether queue and queueName is changed
|
|
|
|
// whether queue value or queueName is changed
|
|
|
|
if (queue.equals(queueObj.getQueue()) && queueName.equals(queueObj.getQueueName())) { |
|
|
|
if (queue.equals(queueObj.getQueue()) && queueName.equals(queueObj.getQueueName())) { |
|
|
|
putMsg(result, Status.NEED_NOT_UPDATE_QUEUE); |
|
|
|
putMsg(result, Status.NEED_NOT_UPDATE_QUEUE); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// check queue is exist
|
|
|
|
// check queue name is exist
|
|
|
|
if (!queue.equals(queueObj.getQueue())) { |
|
|
|
if (!queueName.equals(queueObj.getQueueName())) { |
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
if(checkQueueNameExist(queueName)){ |
|
|
|
putMsg(result, Status.QUEUE_EXIST, queue); |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// check queueName is exist
|
|
|
|
// check queue value is exist
|
|
|
|
if (!queueName.equals(queueObj.getQueueName())) { |
|
|
|
if (!queue.equals(queueObj.getQueue())) { |
|
|
|
if(checkQueueNameExist(queueName)){ |
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
putMsg(result, Status.QUEUE_VALUE_EXIST, queue); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -216,13 +216,13 @@ public class QueueService extends BaseService { |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
logger.error("queue {} has exist, can't create again.", queue); |
|
|
|
logger.error("queue value {} has exist, can't create again.", queue); |
|
|
|
putMsg(result, Status.QUEUE_EXIST, queue); |
|
|
|
putMsg(result, Status.QUEUE_VALUE_EXIST, queue); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(checkQueueNameExist(queueName)){ |
|
|
|
if(checkQueueNameExist(queueName)){ |
|
|
|
logger.error("queueName {} has exist, can't create again.", queueName); |
|
|
|
logger.error("queue name {} has exist, can't create again.", queueName); |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
putMsg(result, Status.QUEUE_NAME_EXIST, queueName); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|