diff --git a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java index fbd1752a..f2b68def 100644 --- a/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java +++ b/src/main/java/com/dispose/ability/impl/DpTechBypassAbilityImpl.java @@ -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: {}, {}",