|
@@ -81,6 +81,8 @@ public class QueueViewJob implements Callable { |
|
@@ -81,6 +81,8 @@ public class QueueViewJob implements Callable { |
81
|
//fire alarm
|
81
|
//fire alarm
|
82
|
for (QueueInfo queueInfo : oneView.getQueueView()) {
|
82
|
for (QueueInfo queueInfo : oneView.getQueueView()) {
|
83
|
|
83
|
|
|
|
84
|
+ initQueueAlert(Integer.toString(moId), queueInfo);
|
|
|
85
|
+
|
84
|
updateQueueAlert(Integer.toString(moId), queueInfo);
|
86
|
updateQueueAlert(Integer.toString(moId), queueInfo);
|
85
|
|
87
|
|
86
|
checkAlert(Integer.toString(moId), queueInfo);
|
88
|
checkAlert(Integer.toString(moId), queueInfo);
|
|
@@ -150,6 +152,22 @@ public class QueueViewJob implements Callable { |
|
@@ -150,6 +152,22 @@ public class QueueViewJob implements Callable { |
150
|
|
152
|
|
151
|
}
|
153
|
}
|
152
|
|
154
|
|
|
|
155
|
+ //初始化
|
|
|
156
|
+ private void initQueueAlert(String moId, QueueInfo queueInfo)
|
|
|
157
|
+ {
|
|
|
158
|
+ RabbitAlertInfo alertInfo=new RabbitAlertInfo();
|
|
|
159
|
+
|
|
|
160
|
+ alertInfo.setAlertHigh(200);
|
|
|
161
|
+
|
|
|
162
|
+ alertInfo.setMoId(Integer.valueOf(moId));
|
|
|
163
|
+
|
|
|
164
|
+ alertInfo.setQueueName(queueInfo.getName());
|
|
|
165
|
+
|
|
|
166
|
+ if (null == rabbitAlertMapper.queryAlertInfo(alertInfo)) {
|
|
|
167
|
+ rabbitAlertMapper.insertAlertInfo(alertInfo);
|
|
|
168
|
+ }
|
|
|
169
|
+ }
|
|
|
170
|
+
|
153
|
@Override
|
171
|
@Override
|
154
|
public Object call() throws Exception {
|
172
|
public Object call() throws Exception {
|
155
|
doTask();
|
173
|
doTask();
|
|
@@ -198,4 +216,6 @@ public class QueueViewJob implements Callable { |
|
@@ -198,4 +216,6 @@ public class QueueViewJob implements Callable { |
198
|
}
|
216
|
}
|
199
|
});
|
217
|
});
|
200
|
}
|
218
|
}
|
|
|
219
|
+
|
|
|
220
|
+
|
201
|
} |
221
|
} |