Authored by jack

增加logger

... ... @@ -34,6 +34,8 @@ public class ClusterViewJob implements Callable {
}
public void doTask() {
DEBUG.info("Start to execute cluster view job in moid {}", this.moId);
MObjectInfo moInfo = InterVar.moMaps.get(moId);
String url = MessageFormat.format(InterVar.URLFORMAT, moInfo.getMoHostIp(), InterVar.port) + InterVar.NODES_URL;
... ... @@ -71,6 +73,8 @@ public class ClusterViewJob implements Callable {
InterVar.clusterViewMaps.put(moId, oneView);
}
DEBUG.info("End to execute cluster view job in moid {}", this.moId);
}
@Override
... ...
... ... @@ -41,6 +41,9 @@ public class OverViewJob implements Callable {
}
public void doTask() {
DEBUG.info("Start to execute over view job in moid {}", this.moId);
MObjectInfo moInfo = InterVar.moMaps.get(moId);
String url = MessageFormat.format(InterVar.URLFORMAT, moInfo.getMoHostIp(), InterVar.port) + InterVar.OVERVIEW_URL;
... ... @@ -100,6 +103,8 @@ public class OverViewJob implements Callable {
InterVar.overViewMaps.put(moId, overViewModel);
}
DEBUG.info("End to execute over view job in moid {}", this.moId);
}
@Override
... ...
... ... @@ -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;
... ... @@ -106,6 +108,8 @@ public class QueueViewJob implements Callable {
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);
... ...