Skip to content

Commit 5ba55c0

Browse files
chickenljcvictory
authored andcommitted
unify config config items: qos.enable to qos-enable. (#4095)
unify config config items: qos.enable to qos-enable. (#4095)
1 parent ccb990f commit 5ba55c0

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

dubbo-common/src/main/java/org/apache/dubbo/common/constants/ConfigConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ public interface ConfigConstants {
4040

4141
String DUBBO_PROTOCOL = "dubbo";
4242

43-
String QOS_ENABLE = "qos.enable";
43+
String QOS_ENABLE = "qos-enable";
4444

45-
String QOS_PORT = "qos.port";
45+
String QOS_PORT = "qos-port";
4646

47-
String ACCEPT_FOREIGN_IP = "qos.accept.foreign.ip";
47+
String ACCEPT_FOREIGN_IP = "qos-accept-foreign-ip";
4848
}

dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ApplicationConfig.java

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
import static org.apache.dubbo.common.constants.CommonConstants.APPLICATION_KEY;
3030
import static org.apache.dubbo.common.constants.CommonConstants.DUMP_DIRECTORY;
3131
import static org.apache.dubbo.common.constants.ConfigConstants.ACCEPT_FOREIGN_IP;
32+
import static org.apache.dubbo.common.constants.ConfigConstants.QOS_ENABLE;
33+
import static org.apache.dubbo.common.constants.ConfigConstants.QOS_PORT;
34+
import static org.apache.dubbo.common.constants.ConfigConstants.SHUTDOWN_WAIT_KEY;
3235
import static org.apache.dubbo.config.Constants.ARCHITECTURE;
3336
import static org.apache.dubbo.config.Constants.DEVELOPMENT_ENVIRONMENT;
3437
import static org.apache.dubbo.config.Constants.ENVIRONMENT;
3538
import static org.apache.dubbo.config.Constants.NAME;
3639
import static org.apache.dubbo.config.Constants.ORGANIZATION;
3740
import static org.apache.dubbo.config.Constants.OWNER;
3841
import static org.apache.dubbo.config.Constants.PRODUCTION_ENVIRONMENT;
39-
import static org.apache.dubbo.common.constants.ConfigConstants.QOS_ENABLE;
40-
import static org.apache.dubbo.common.constants.ConfigConstants.QOS_PORT;
41-
import static org.apache.dubbo.common.constants.ConfigConstants.SHUTDOWN_WAIT_KEY;
4242
import static org.apache.dubbo.config.Constants.TEST_ENVIRONMENT;
4343

4444

@@ -317,6 +317,39 @@ public void setQosAcceptForeignIp(Boolean qosAcceptForeignIp) {
317317
this.qosAcceptForeignIp = qosAcceptForeignIp;
318318
}
319319

320+
@Deprecated
321+
@Parameter(key = "qos.enable", excluded = true)
322+
public Boolean getQosEnableDeprecated() {
323+
return getQosEnable();
324+
}
325+
326+
@Deprecated
327+
public void setQosEnableDeprecated(Boolean qosEnable) {
328+
setQosEnable(qosEnable);
329+
}
330+
331+
@Deprecated
332+
@Parameter(key = "qos.port", excluded = true)
333+
public Integer getQosPortDeprecated() {
334+
return getQosPort();
335+
}
336+
337+
@Deprecated
338+
public void setQosPortDeprecated(Integer qosPort) {
339+
this.setQosPort(qosPort);
340+
}
341+
342+
@Deprecated
343+
@Parameter(key = "qos.accept.foreign.ip", excluded = true)
344+
public Boolean getQosAcceptForeignIpDeprecated() {
345+
return this.getQosAcceptForeignIp();
346+
}
347+
348+
@Deprecated
349+
public void setQosAcceptForeignIpDeprecated(Boolean qosAcceptForeignIp) {
350+
this.setQosAcceptForeignIp(qosAcceptForeignIp);
351+
}
352+
320353
public Map<String, String> getParameters() {
321354
return parameters;
322355
}

0 commit comments

Comments
 (0)