|
@@ -2,6 +2,8 @@ package com.saga.thread.common;
|
|
|
|
|
|
import java.io.FileReader;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
import java.util.Map.Entry;
|
|
|
|
|
|
import org.zillion.util.log.LogUtil;
|
|
@@ -54,6 +56,24 @@ public class LoadConfigThread extends Thread {
|
|
|
|
|
|
private void loadPointList2() {
|
|
|
// TODO Auto-generated method stub
|
|
|
+ LogUtil.info("Clear Project Point List" + " Begin...");
|
|
|
+ synchronized (Constant.ps_PhysicalList) {
|
|
|
+ Constant.ps_PhysicalList = null;
|
|
|
+ Constant.ps_PhysicalList = new HashMap<String, List<String>>();
|
|
|
+ // Constant.ps_PhysicalList.clear();
|
|
|
+ }
|
|
|
+ synchronized (Constant.ps_ProjectList) {
|
|
|
+ Constant.ps_ProjectList = null;
|
|
|
+ Constant.ps_ProjectList = new HashMap<String, List<String>>();
|
|
|
+ // Constant.ps_ProjectList.clear();
|
|
|
+ }
|
|
|
+ synchronized (Constant.ps_MeterList) {
|
|
|
+ Constant.ps_MeterList = null;
|
|
|
+ Constant.ps_MeterList = new HashMap<String, List<String>>();
|
|
|
+ // Constant.ps_MeterList.clear();
|
|
|
+ }
|
|
|
+ LogUtil.info("Clear Project Point List" + " End...");
|
|
|
+
|
|
|
for (Entry<String, String> bd : Constant.BuildingDB.entrySet()) {
|
|
|
try {
|
|
|
String project = bd.getKey();
|