|
|
@ -24,6 +24,7 @@ public class CacheTask {
|
|
|
|
StaticVariable.jg_Cache = null;
|
|
|
|
StaticVariable.jg_Cache = null;
|
|
|
|
StaticVariable.zsb_Cache = null;
|
|
|
|
StaticVariable.zsb_Cache = null;
|
|
|
|
StaticVariable.rule_Cache.clear();
|
|
|
|
StaticVariable.rule_Cache.clear();
|
|
|
|
|
|
|
|
StaticVariable.ruleRelationMap.clear();
|
|
|
|
StaticVariable.paramRelationMap.clear();
|
|
|
|
StaticVariable.paramRelationMap.clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -42,6 +43,8 @@ public class CacheTask {
|
|
|
|
item.initComparator(item.getComparator(), item.getOperator());
|
|
|
|
item.initComparator(item.getComparator(), item.getOperator());
|
|
|
|
StaticVariable.rule_Cache.put(item.getId(), item);
|
|
|
|
StaticVariable.rule_Cache.put(item.getId(), item);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
String key = item.getNSensor().getDevId() + "_" + item.getTypePoint().getField();
|
|
|
|
|
|
|
|
StaticVariable.ruleRelationMap.put(key, item.getId());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error("CacheTask.refreshRule error.", e);
|
|
|
|
log.error("CacheTask.refreshRule error.", e);
|
|
|
|