Showing
1 changed file
with
4 additions
and
3 deletions
@@ -85,11 +85,12 @@ public class MemcachedMonitService { | @@ -85,11 +85,12 @@ public class MemcachedMonitService { | ||
85 | for (TypeInfo typeInfo : childTypeList) { | 85 | for (TypeInfo typeInfo : childTypeList) { |
86 | 86 | ||
87 | List<MObjectInfo> memcacheList = redisMonitService.queryMoByType(typeInfo); | 87 | List<MObjectInfo> memcacheList = redisMonitService.queryMoByType(typeInfo); |
88 | - String logicName = typeInfo.getTypeName(); | ||
89 | 88 | ||
90 | //类型下没有监控对象 | 89 | //类型下没有监控对象 |
91 | if(!memcacheList.isEmpty()) | 90 | if(!memcacheList.isEmpty()) |
92 | { | 91 | { |
92 | + String logicName = typeInfo.getTypeName(); | ||
93 | + | ||
93 | List<MObjectInfo> sMemcacheList = serversMap.get(logicName); | 94 | List<MObjectInfo> sMemcacheList = serversMap.get(logicName); |
94 | 95 | ||
95 | //该类型下没有查询过,则新插入 | 96 | //该类型下没有查询过,则新插入 |
@@ -104,10 +105,10 @@ public class MemcachedMonitService { | @@ -104,10 +105,10 @@ public class MemcachedMonitService { | ||
104 | sMemcacheList.addAll(memcacheList); | 105 | sMemcacheList.addAll(memcacheList); |
105 | 106 | ||
106 | } | 107 | } |
107 | - }else{ | 108 | + }/*else{ |
108 | /// 类型下没有监控对象 就把该类型去掉 | 109 | /// 类型下没有监控对象 就把该类型去掉 |
109 | MemConstants.MEMCACHED_RELATE_MAP.remove(logicName); | 110 | MemConstants.MEMCACHED_RELATE_MAP.remove(logicName); |
110 | - } | 111 | + }*/ |
111 | } | 112 | } |
112 | 113 | ||
113 | return serversMap; | 114 | return serversMap; |
-
Please register or login to post a comment