Search in sources :

Example 1 with LoadMonitorStatisticDataProgress

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;
}
Also used : LoadMonitorStatisticDataProgress(com.cubrid.cubridmanager.ui.monstatistic.progress.LoadMonitorStatisticDataProgress) List(java.util.List) ArrayList(java.util.ArrayList) StatisticChartItem(com.cubrid.cubridmanager.core.monstatistic.model.StatisticChartItem)

Aggregations

StatisticChartItem (com.cubrid.cubridmanager.core.monstatistic.model.StatisticChartItem)1 LoadMonitorStatisticDataProgress (com.cubrid.cubridmanager.ui.monstatistic.progress.LoadMonitorStatisticDataProgress)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1