REM:
1.修改旁路手动牵引策略名
This commit is contained in:
chenlinghy 2021-01-19 15:37:07 +08:00
parent a738c4f13e
commit 437084ffd7
1 changed files with 6 additions and 7 deletions

View File

@ -245,7 +245,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
log.debug("++++Begging Create Traction Strategy: {}, {}", objName, disposeObject);
// 获取旁路手动牵引策略名
String tractionName = getTractionStrategyName(objName, disposeObject);
String tractionName = getTractionStrategyName(disposeObject);
// 删除旧的策略
err = removeTractionStrategy(tractionName);
@ -282,7 +282,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
log.debug("++++Begging Start Traction Strategy: {}, {}", objName, disposeObject);
// 获取旁路手动牵引策略名
String policyName = getTractionStrategyName(objName, disposeObject);
String policyName = getTractionStrategyName(disposeObject);
// 启动旁路手动牵引策略
log.debug("DpTech startBypassManualTractionStrategyForUMC request: {}, {}", policyName, disposeObject);
@ -313,7 +313,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
log.debug("++++Begging Stop Traction Strategy: {}, {}", objName, disposeObject);
// 获取旁路手动牵引策略名
String policyName = getTractionStrategyName(objName, disposeObject);
String policyName = getTractionStrategyName(disposeObject);
// 判断缓存中是否有该防护策略
if (!dpBypassManager.getTractionStrategyName().containsKey(policyName)) {
@ -560,12 +560,11 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
/**
* Gets traction strategy name.
*
* @param objName the obj name
* @param disposeIp the dispose ip
* @return the traction strategy name
*/
private String getTractionStrategyName(String objName, String disposeIp) {
return objectPrefix + "_" + disposeIp + "_" + objName;
private String getTractionStrategyName(String disposeIp) {
return objectPrefix + "_" + disposeIp;
}
/**
@ -919,7 +918,7 @@ public class DpTechBypassAbilityImpl extends DpTechAbilityImpl {
return new MulReturnType<>(err, null);
}
err = removeTractionStrategy(getTractionStrategyName(protectObjName, disposeObject));
err = removeTractionStrategy(getTractionStrategyName(disposeObject));
if (err != ErrorCode.ERR_OK) {
log.error("----Error DPTech Stop Cleanup Task, Clean Traction Strategy Error: {}, {}",