Showing
1 changed file
with
1 additions
and
5 deletions
@@ -29,8 +29,6 @@ public class QueueViewJob implements Callable { | @@ -29,8 +29,6 @@ public class QueueViewJob implements Callable { | ||
29 | 29 | ||
30 | private RabbitAlertMapper rabbitAlertMapper; | 30 | private RabbitAlertMapper rabbitAlertMapper; |
31 | 31 | ||
32 | - private IMObjectInfoService moService; | ||
33 | - | ||
34 | private AlarmMsgComp alarmMsgComp; | 32 | private AlarmMsgComp alarmMsgComp; |
35 | 33 | ||
36 | private int moId; | 34 | private int moId; |
@@ -41,8 +39,6 @@ public class QueueViewJob implements Callable { | @@ -41,8 +39,6 @@ public class QueueViewJob implements Callable { | ||
41 | 39 | ||
42 | this.rabbitAlertMapper = SpringContextUtils.getBeanByClass(RabbitAlertMapper.class); | 40 | this.rabbitAlertMapper = SpringContextUtils.getBeanByClass(RabbitAlertMapper.class); |
43 | 41 | ||
44 | - this.moService = SpringContextUtils.getBeanByClass(MObjectInfoServiceImpl.class); | ||
45 | - | ||
46 | this.alarmMsgComp = SpringContextUtils.getBeanByClass(AlarmMsgComp.class); | 42 | this.alarmMsgComp = SpringContextUtils.getBeanByClass(AlarmMsgComp.class); |
47 | } | 43 | } |
48 | 44 | ||
@@ -176,7 +172,7 @@ public class QueueViewJob implements Callable { | @@ -176,7 +172,7 @@ public class QueueViewJob implements Callable { | ||
176 | 172 | ||
177 | builder.append("{"); | 173 | builder.append("{"); |
178 | 174 | ||
179 | - String ip = moService.queryMObjectInfo(this.moId).getMoHostIp(); | 175 | + String ip = InterVar.moMaps.get(this.moId).getMoHostIp(); |
180 | 176 | ||
181 | builder.append("宿主机:").append(ip).append(";"); | 177 | builder.append("宿主机:").append(ip).append(";"); |
182 | 178 |
-
Please register or login to post a comment