|
1 | 1 | package root.core.domain; |
2 | 2 |
|
3 | | -import lombok.AllArgsConstructor; |
| 3 | +import java.util.Date; |
| 4 | + |
4 | 5 | import lombok.Data; |
| 6 | +import lombok.EqualsAndHashCode; |
5 | 7 | import lombok.NoArgsConstructor; |
6 | 8 |
|
7 | | -@AllArgsConstructor |
8 | 9 | @NoArgsConstructor |
| 10 | +@EqualsAndHashCode(callSuper = false) |
9 | 11 | @Data |
10 | | -public class ASMDiskUsage { |
| 12 | +public class ASMDiskUsage extends MonitoringResult { |
| 13 | + |
| 14 | + public ASMDiskUsage(Date monitoringDate, String asmDiskGroupName, String asmDiskGroupType, double totalRawSpace, |
| 15 | + double totalFreeSpace, double freeSpace, double usedSpace, double usedPercent, String resultMsg) { |
| 16 | + super(monitoringDate); |
| 17 | + this.asmDiskGroupName = asmDiskGroupName; |
| 18 | + this.asmDiskGroupType = asmDiskGroupType; |
| 19 | + this.totalRawSpace = totalRawSpace; |
| 20 | + this.totalFreeSpace = totalFreeSpace; |
| 21 | + this.freeSpace = freeSpace; |
| 22 | + this.usedSpace = usedSpace; |
| 23 | + this.usedPercent = usedPercent; |
| 24 | + this.resultMsg = resultMsg; |
| 25 | + } |
| 26 | + |
| 27 | + public ASMDiskUsage(String monitoringDate, String monitoringTime, String asmDiskGroupName, String asmDiskGroupType, |
| 28 | + double totalRawSpace, double totalFreeSpace, double freeSpace, double usedSpace, double usedPercent, |
| 29 | + String resultMsg) { |
| 30 | + super(monitoringDate, monitoringTime); |
| 31 | + this.asmDiskGroupName = asmDiskGroupName; |
| 32 | + this.asmDiskGroupType = asmDiskGroupType; |
| 33 | + this.totalRawSpace = totalRawSpace; |
| 34 | + this.totalFreeSpace = totalFreeSpace; |
| 35 | + this.freeSpace = freeSpace; |
| 36 | + this.usedSpace = usedSpace; |
| 37 | + this.usedPercent = usedPercent; |
| 38 | + this.resultMsg = resultMsg; |
| 39 | + } |
11 | 40 |
|
12 | 41 | private String asmDiskGroupName; |
13 | 42 |
|
|
0 commit comments