From 437084ffd79ebbea34e0512dd319641cd802c0c9 Mon Sep 17 00:00:00 2001 From: chenlinghy Date: Tue, 19 Jan 2021 15:37:07 +0800 Subject: [PATCH] =?UTF-8?q?OCT=20REM:=201.=E4=BF=AE=E6=94=B9=E6=97=81?= =?UTF-8?q?=E8=B7=AF=E6=89=8B=E5=8A=A8=E7=89=B5=E5=BC=95=E7=AD=96=E7=95=A5?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ability/impl/DpTechBypassAbilityImpl.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) 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: {}, {}",