未验证 提交 8888029e 编写于 作者: wu-sheng's avatar wu-sheng 提交者: GitHub

Module config set override is not working (#3283)

* set Override is not working.

* Submodule update

* Add header.
上级 db9759fc
......@@ -47,11 +47,24 @@ public class StorageModuleElasticsearchConfig extends ModuleConfig {
private int otherMetricsDataTTL = 0;
@Setter private int monthMetricsDataTTL = 18;
public void setOtherMetricsDataTTL(int otherMetricsDataTTL) {
public int getMinuteMetricsDataTTL() {
if (otherMetricsDataTTL > 0) {
minuteMetricsDataTTL = otherMetricsDataTTL;
hourMetricsDataTTL = otherMetricsDataTTL;
dayMetricsDataTTL = otherMetricsDataTTL;
return otherMetricsDataTTL;
}
return minuteMetricsDataTTL;
}
public int getHourMetricsDataTTL() {
if (otherMetricsDataTTL > 0) {
return otherMetricsDataTTL;
}
return hourMetricsDataTTL;
}
public int getDayMetricsDataTTL() {
if (otherMetricsDataTTL > 0) {
return otherMetricsDataTTL;
}
return dayMetricsDataTTL;
}
}
Subproject commit 3e78e9cc16f1749ef3a4deb9598394357d8b161d
Subproject commit 17040efd79a973b6a3c84a70b1a401cd92ff9ba4
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册