REM:
1. 提前初始化迪普设备数据同步缓存,避免异常
This commit is contained in:
HuangXin 2021-01-21 11:01:33 +08:00
parent 86b82556d4
commit 8eb1b6fbcc
1 changed files with 5 additions and 6 deletions

View File

@ -63,7 +63,11 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
/**
* The Dp bypass manager.
*/
private DpBypassManager dpBypassManager;
private DpBypassManager dpBypassManager = DpBypassManager.builder()
.protectObject(new Hashtable<>())
.protectStrategy(new Hashtable<>())
.tractionStrategyName(new Hashtable<>())
.build();
/**
* The Timer cnt.
*/
@ -726,11 +730,6 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
*/
@Override
public void initDeviceEnv(String urlPath, String username, String password) {
dpBypassManager = DpBypassManager.builder()
.protectObject(new Hashtable<>())
.protectStrategy(new Hashtable<>())
.tractionStrategyName(new Hashtable<>())
.build();
super.initDeviceEnv(urlPath, username, password);
// 获取所有清洗设备