parent
781907eb12
commit
d2453597e6
|
@ -347,6 +347,12 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
||||||
return ErrorCode.ERR_CALLDEVICE;
|
return ErrorCode.ERR_CALLDEVICE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 更新缓存状态
|
||||||
|
if (dpBypassManager.getTractionStrategyName().containsKey(policyName)) {
|
||||||
|
DpTractionStrategy ts = dpBypassManager.getTractionStrategyName().get(policyName);
|
||||||
|
ts.setRunning(false);
|
||||||
|
}
|
||||||
|
|
||||||
return ErrorCode.ERR_OK;
|
return ErrorCode.ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,6 +379,8 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
||||||
|
|
||||||
if (ret.getResultRetVal() == 0) {
|
if (ret.getResultRetVal() == 0) {
|
||||||
log.debug("Remove Traction Strategy {} Succeed", tractionName);
|
log.debug("Remove Traction Strategy {} Succeed", tractionName);
|
||||||
|
//移除缓存信息
|
||||||
|
dpBypassManager.getTractionStrategyName().remove(tractionName);
|
||||||
return ErrorCode.ERR_OK;
|
return ErrorCode.ERR_OK;
|
||||||
} else {
|
} else {
|
||||||
log.error("!!!!Remove Traction Strategy {} Error: {}", tractionName,
|
log.error("!!!!Remove Traction Strategy {} Error: {}", tractionName,
|
||||||
|
@ -934,12 +942,6 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
||||||
|
|
||||||
String policyName = getTractionStrategyName(disposeObject);
|
String policyName = getTractionStrategyName(disposeObject);
|
||||||
|
|
||||||
// 更新缓存状态
|
|
||||||
if (dpBypassManager.getTractionStrategyName().containsKey(policyName)) {
|
|
||||||
DpTractionStrategy ts = dpBypassManager.getTractionStrategyName().get(policyName);
|
|
||||||
ts.setRunning(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
err = removeTractionStrategy(policyName);
|
err = removeTractionStrategy(policyName);
|
||||||
|
|
||||||
if (err != ErrorCode.ERR_OK) {
|
if (err != ErrorCode.ERR_OK) {
|
||||||
|
@ -948,10 +950,6 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//移除缓存信息
|
|
||||||
String policyName = getTractionStrategyName(disposeObject);
|
|
||||||
dpBypassManager.getTractionStrategyName().remove(policyName);
|
|
||||||
|
|
||||||
log.info("----Finish DPTech Stop Cleanup Task Succeed: {}", disposeObject);
|
log.info("----Finish DPTech Stop Cleanup Task Succeed: {}", disposeObject);
|
||||||
return new MulReturnType<>(ErrorCode.ERR_OK, null);
|
return new MulReturnType<>(ErrorCode.ERR_OK, null);
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
|
|
Loading…
Reference in New Issue