Authored by simba

Merge branch 'master' of http://git.yoho.cn/ops/monitor-service

... ... @@ -12,4 +12,6 @@ public class QueryRequest extends PageRequest {
String moId;
String moType;
String queueKey;
}
... ...
... ... @@ -97,15 +97,29 @@ public class RabbitmqService {
@RequestMapping(value = "/queue", method = RequestMethod.POST)
public BaseResponse queryQueue(@RequestBody QueryRequest request) {
DEBUG.info("Query the queues of mo {}",request.getMoId());
DEBUG.info("Query the queues of mo {}", request.getMoId());
BaseResponse<PageResponse<QueueInfo>> baseResponse = new BaseResponse();
QueueView oneView = InterVar.queueViewMaps.get(Integer.parseInt(request.getMoId()));
if (null != oneView) {
List<QueueInfo> queuesList = new ArrayList<>();
List<QueueInfo> queuesList = oneView.getQueueView();
if (StringUtils.isBlank(request.getQueueKey())) {
queuesList = oneView.getQueueView();
} else {
for (QueueInfo queueInfo : oneView.getQueueView()) {
if (queueInfo.getName().toLowerCase().contains(request.getQueueKey().toLowerCase())) {
queuesList.add(queueInfo);
}
}
}
List<QueueInfo> selectedList = new ArrayList<>();
... ...