diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/ConfigConstants.java b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/ConfigConstants.java index 44ba466e580..9f36406ae9c 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/ConfigConstants.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/ConfigConstants.java @@ -40,9 +40,9 @@ public interface ConfigConstants { String DUBBO_PROTOCOL = "dubbo"; - String QOS_ENABLE = "qos.enable"; + String QOS_ENABLE = "qos-enable"; - String QOS_PORT = "qos.port"; + String QOS_PORT = "qos-port"; - String ACCEPT_FOREIGN_IP = "qos.accept.foreign.ip"; + String ACCEPT_FOREIGN_IP = "qos-accept-foreign-ip"; } diff --git a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java index 2b50e50ed72..851be9bcd80 100644 --- a/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java +++ b/dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java @@ -29,6 +29,9 @@ import static org.apache.dubbo.common.constants.CommonConstants.APPLICATION_KEY; import static org.apache.dubbo.common.constants.CommonConstants.DUMP_DIRECTORY; import static org.apache.dubbo.common.constants.ConfigConstants.ACCEPT_FOREIGN_IP; +import static org.apache.dubbo.common.constants.ConfigConstants.QOS_ENABLE; +import static org.apache.dubbo.common.constants.ConfigConstants.QOS_PORT; +import static org.apache.dubbo.common.constants.ConfigConstants.SHUTDOWN_WAIT_KEY; import static org.apache.dubbo.config.Constants.ARCHITECTURE; import static org.apache.dubbo.config.Constants.DEVELOPMENT_ENVIRONMENT; import static org.apache.dubbo.config.Constants.ENVIRONMENT; @@ -36,9 +39,6 @@ import static org.apache.dubbo.config.Constants.ORGANIZATION; import static org.apache.dubbo.config.Constants.OWNER; import static org.apache.dubbo.config.Constants.PRODUCTION_ENVIRONMENT; -import static org.apache.dubbo.common.constants.ConfigConstants.QOS_ENABLE; -import static org.apache.dubbo.common.constants.ConfigConstants.QOS_PORT; -import static org.apache.dubbo.common.constants.ConfigConstants.SHUTDOWN_WAIT_KEY; import static org.apache.dubbo.config.Constants.TEST_ENVIRONMENT; @@ -317,6 +317,39 @@ public void setQosAcceptForeignIp(Boolean qosAcceptForeignIp) { this.qosAcceptForeignIp = qosAcceptForeignIp; } + @Deprecated + @Parameter(key = "qos.enable", excluded = true) + public Boolean getQosEnableDeprecated() { + return getQosEnable(); + } + + @Deprecated + public void setQosEnableDeprecated(Boolean qosEnable) { + setQosEnable(qosEnable); + } + + @Deprecated + @Parameter(key = "qos.port", excluded = true) + public Integer getQosPortDeprecated() { + return getQosPort(); + } + + @Deprecated + public void setQosPortDeprecated(Integer qosPort) { + this.setQosPort(qosPort); + } + + @Deprecated + @Parameter(key = "qos.accept.foreign.ip", excluded = true) + public Boolean getQosAcceptForeignIpDeprecated() { + return this.getQosAcceptForeignIp(); + } + + @Deprecated + public void setQosAcceptForeignIpDeprecated(Boolean qosAcceptForeignIp) { + this.setQosAcceptForeignIp(qosAcceptForeignIp); + } + public Map getParameters() { return parameters; }