Remove duplicate in MetricExportProperties

Closes gh-3109
This commit is contained in:
izeye
2015-06-04 11:50:33 +09:00
committed by Stephane Nicoll
parent 6c653038f6
commit 5096a5d242

View File

@@ -35,12 +35,8 @@ import org.springframework.util.StringUtils;
@ConfigurationProperties("spring.metrics.export")
public class MetricExportProperties extends TriggerProperties {
/**
* Flag to disable all metric exports (assuming any MetricWriters are available).
*/
private boolean enabled = true;
private Map<String, SpecificTriggerProperties> triggers = new LinkedHashMap<String, SpecificTriggerProperties>();
private Map<String, SpecificTriggerProperties> triggers
= new LinkedHashMap<String, SpecificTriggerProperties>();
private Redis redis = new Redis();
@@ -70,16 +66,6 @@ public class MetricExportProperties extends TriggerProperties {
}
}
@Override
public boolean isEnabled() {
return this.enabled;
}
@Override
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
/**
* Configuration for triggers on individual named writers. Each value can individually
* specify a name pattern explicitly, or else the map key will be used if the name is