feature(web): 增加压缩结果显示
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.lanyuanxiaoyao.service.configuration.entity.info;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* @author lanyuanxiaoyao
|
||||
* @date 2023-06-14
|
||||
@@ -15,11 +13,13 @@ public class CompactionMetrics {
|
||||
private Boolean complete;
|
||||
private Long startedTime;
|
||||
private Long finishedTime;
|
||||
private Statistics before;
|
||||
private Statistics after;
|
||||
|
||||
public CompactionMetrics() {
|
||||
}
|
||||
|
||||
public CompactionMetrics(Long flinkJobId, String alias, String applicationId, String cluster, String compactionPlanInstant, Boolean complete, Long startedTime, Long finishedTime) {
|
||||
public CompactionMetrics(Long flinkJobId, String alias, String applicationId, String cluster, String compactionPlanInstant, Boolean complete, Long startedTime, Long finishedTime, Statistics before, Statistics after) {
|
||||
this.flinkJobId = flinkJobId;
|
||||
this.alias = alias;
|
||||
this.applicationId = applicationId;
|
||||
@@ -28,6 +28,8 @@ public class CompactionMetrics {
|
||||
this.complete = complete;
|
||||
this.startedTime = startedTime;
|
||||
this.finishedTime = finishedTime;
|
||||
this.before = before;
|
||||
this.after = after;
|
||||
}
|
||||
|
||||
public Long getFlinkJobId() {
|
||||
@@ -62,6 +64,14 @@ public class CompactionMetrics {
|
||||
return finishedTime;
|
||||
}
|
||||
|
||||
public Statistics getBefore() {
|
||||
return before;
|
||||
}
|
||||
|
||||
public Statistics getAfter() {
|
||||
return after;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "CompactionMetrics{" +
|
||||
@@ -70,9 +80,56 @@ public class CompactionMetrics {
|
||||
", applicationId='" + applicationId + '\'' +
|
||||
", cluster='" + cluster + '\'' +
|
||||
", compactionPlanInstant='" + compactionPlanInstant + '\'' +
|
||||
", isComplete=" + complete +
|
||||
", complete=" + complete +
|
||||
", startedTime=" + startedTime +
|
||||
", finishedTime=" + finishedTime +
|
||||
", before=" + before +
|
||||
", after=" + after +
|
||||
'}';
|
||||
}
|
||||
|
||||
public static class Statistics {
|
||||
private Long totalScanTime;
|
||||
private Long totalLogFilesCompacted;
|
||||
private Long totalLogFilesSize;
|
||||
private Long totalRecordsDeleted;
|
||||
private Long totalRecordsUpdated;
|
||||
private Long totalRecordsCompacted;
|
||||
|
||||
public Statistics() {
|
||||
}
|
||||
|
||||
public Statistics(Long totalScanTime, Long totalLogFilesCompacted, Long totalLogFilesSize, Long totalRecordsDeleted, Long totalRecordsUpdated, Long totalRecordsCompacted) {
|
||||
this.totalScanTime = totalScanTime;
|
||||
this.totalLogFilesCompacted = totalLogFilesCompacted;
|
||||
this.totalLogFilesSize = totalLogFilesSize;
|
||||
this.totalRecordsDeleted = totalRecordsDeleted;
|
||||
this.totalRecordsUpdated = totalRecordsUpdated;
|
||||
this.totalRecordsCompacted = totalRecordsCompacted;
|
||||
}
|
||||
|
||||
public Long getTotalScanTime() {
|
||||
return totalScanTime;
|
||||
}
|
||||
|
||||
public Long getTotalLogFilesCompacted() {
|
||||
return totalLogFilesCompacted;
|
||||
}
|
||||
|
||||
public Long getTotalLogFilesSize() {
|
||||
return totalLogFilesSize;
|
||||
}
|
||||
|
||||
public Long getTotalRecordsDeleted() {
|
||||
return totalRecordsDeleted;
|
||||
}
|
||||
|
||||
public Long getTotalRecordsUpdated() {
|
||||
return totalRecordsUpdated;
|
||||
}
|
||||
|
||||
public Long getTotalRecordsCompacted() {
|
||||
return totalRecordsCompacted;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user