REM:
1.删除防护对象时清除相应的缓存信息
This commit is contained in:
chenlinghy 2021-01-20 15:08:37 +08:00
parent d2453597e6
commit 3c708c4012
1 changed files with 8 additions and 2 deletions

View File

@ -128,9 +128,11 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
ret = getCleanTypePort().delBypassManualTractionStrategyForUMC(v.getPolicyName());
if (ret.getResultRetVal() == 0) {
log.debug("Remove Traction Strategy {} Succeed", v.getPolicyName());
log.info("Remove Traction Strategy {} Succeed", v.getPolicyName());
//清楚缓存信息
dpBypassManager.getTractionStrategyName().remove(v.getPolicyName());
} else {
log.error("!!!!Remove Traction Strategy {} Error: {}", v.getPolicyName(),
log.info("!!!!Remove Traction Strategy {} Error: {}", v.getPolicyName(),
ret.getResultInfo().getValue());
return ErrorCode.ERR_CALLDEVICE;
}
@ -151,6 +153,8 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
if (ret.getResultRetVal() == 0) {
log.debug("Disable Protection Strategy Template {} Succeed", objName);
//清楚缓存信息
dpBypassManager.getProtectStrategy().remove(objName);
} else {
log.error("!!!!Disable Protection Strategy Template {} Error: {}", objName,
ret.getResultInfo().getValue());
@ -165,6 +169,8 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
if (ret.getResultRetVal() == 0) {
log.debug("Delete Protection Object {} Succeed", objName);
//清楚缓存信息
dpBypassManager.getProtectObject().remove(objName);
} else {
log.error("!!!!Delete Protection Object {} Error: {}", objName,
ret.getResultInfo().getValue());