use of com.cubrid.cubridmanager.ui.monstatistic.progress.LoadMonitorStatisticDataProgress in project cubrid-manager by CUBRID.
the class MonitorStatisticEditor method refreshData.
private Map<StatisticChartItem, List<StatisticData>> refreshData(List<StatisticChartItem> itemList) {
if (itemList == null) {
return null;
}
LoadMonitorStatisticDataProgress progress;
if (isMultiHost) {
progress = new LoadMonitorStatisticDataProgress();
} else {
progress = new LoadMonitorStatisticDataProgress(serverInfo);
}
progress.setStatisticItemList(itemList);
progress.loadMonitorStatisticData();
/*[TOOLS-3742] when invalid token or connect server failure, give out error message*/
if (!isMultiHost && progress.getErrorMsg() != null) {
CommonUITool.openErrorBox(progress.getErrorMsg());
}
Map<StatisticChartItem, List<StatisticData>> dataMap = progress.getStatisticDataMap();
return dataMap;
}
Aggregations