|
4 | 4 |
|
5 | 5 | import org.hibernate.validator.constraints.NotEmpty;
|
6 | 6 |
|
| 7 | +import javax.validation.constraints.Max; |
| 8 | +import javax.validation.constraints.Min; |
| 9 | + |
7 | 10 | import io.dropwizard.Configuration;
|
8 | 11 |
|
9 | 12 | public class ReaperApplicationConfiguration extends Configuration {
|
10 | 13 |
|
11 |
| - private String testingValue; |
| 14 | + private int segmentCount; |
| 15 | + |
| 16 | + @NotEmpty |
| 17 | + private String repairStrategy; |
| 18 | + |
| 19 | + private boolean snapshotRepair; |
| 20 | + |
| 21 | + private double repairIntensity; |
| 22 | + |
| 23 | + |
| 24 | + @JsonProperty |
| 25 | + public int getSegmentCount() { |
| 26 | + return segmentCount; |
| 27 | + } |
| 28 | + |
| 29 | + @JsonProperty |
| 30 | + public void setSegmentCount(int segmentCount) { |
| 31 | + this.segmentCount = segmentCount; |
| 32 | + } |
| 33 | + |
| 34 | + |
| 35 | + @JsonProperty |
| 36 | + public String getRepairStrategy() { |
| 37 | + return repairStrategy; |
| 38 | + } |
| 39 | + |
| 40 | + @JsonProperty |
| 41 | + public void setRepairStrategy(String repairStrategy) { |
| 42 | + this.repairStrategy = repairStrategy; |
| 43 | + } |
| 44 | + |
| 45 | + |
| 46 | + @JsonProperty |
| 47 | + public boolean getSnapshotRepair() { |
| 48 | + return snapshotRepair; |
| 49 | + } |
| 50 | + |
| 51 | + @JsonProperty |
| 52 | + public void setSnapshotRepair(boolean snapshotRepair) { |
| 53 | + this.snapshotRepair = snapshotRepair; |
| 54 | + } |
| 55 | + |
12 | 56 |
|
13 | 57 | @JsonProperty
|
14 |
| - public String getTestingValue() { |
15 |
| - return testingValue; |
| 58 | + public double getRepairIntensity() { |
| 59 | + return repairIntensity; |
16 | 60 | }
|
17 | 61 |
|
18 | 62 | @JsonProperty
|
19 |
| - public void setTestingValue(String testingValue) { |
20 |
| - this.testingValue = testingValue; |
| 63 | + public void setRepairIntensity(double repairIntensity) { |
| 64 | + this.repairIntensity = repairIntensity; |
21 | 65 | }
|
22 | 66 | }
|
0 commit comments