...
|
...
|
@@ -58,6 +58,8 @@ public class QueueViewJob implements Callable { |
|
|
}
|
|
|
|
|
|
public void doTask() {
|
|
|
DEBUG.info("Start to execute queue view job in moid {}", this.moId);
|
|
|
|
|
|
MObjectInfo moInfo = InterVar.moMaps.get(moId);
|
|
|
|
|
|
String url = MessageFormat.format(InterVar.URLFORMAT, moInfo.getMoHostIp(), InterVar.port) + InterVar.QUEUE_URL;
|
...
|
...
|
@@ -102,10 +104,12 @@ public class QueueViewJob implements Callable { |
|
|
|
|
|
if (null != oneView) {
|
|
|
|
|
|
influxComp.doWriteView(oneView, InterVar.DBNAME);
|
|
|
/*influxComp.doWriteView(oneView, InterVar.DBNAME);*/
|
|
|
|
|
|
InterVar.queueViewMaps.put(moId, oneView);
|
|
|
}
|
|
|
|
|
|
DEBUG.info("End to execute queue view job in moid {}", this.moId);
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -153,9 +157,8 @@ public class QueueViewJob implements Callable { |
|
|
}
|
|
|
|
|
|
//初始化
|
|
|
private void initQueueAlert(String moId, QueueInfo queueInfo)
|
|
|
{
|
|
|
RabbitAlertInfo alertInfo=new RabbitAlertInfo();
|
|
|
private void initQueueAlert(String moId, QueueInfo queueInfo) {
|
|
|
RabbitAlertInfo alertInfo = new RabbitAlertInfo();
|
|
|
|
|
|
alertInfo.setAlertHigh(200);
|
|
|
|
...
|
...
|
|