make the bulk export retention time configurable (#917)

* #710 make the bulk export retention time configurable

* #710 spotless fix

---------

Co-authored-by: Steve Swinsburg <steve.swinsburg@digitalhealth.gov.au>
This commit is contained in:
Steve Swinsburg
2026-02-16 22:33:00 +11:00
committed by GitHub
parent 78a068ab45
commit fbb67dd978
4 changed files with 18 additions and 0 deletions

View File

@@ -131,6 +131,8 @@ public class AppProperties {
private Integer expunge_thread_count = null;
private Elasticsearch elasticsearch = null;
private Integer bulk_export_file_retention_period_hours = 2;
public List<String> getCustomInterceptorClasses() {
return custom_interceptor_classes;
}
@@ -856,6 +858,14 @@ public class AppProperties {
this.elasticsearch = elasticsearch;
}
public Integer getBulk_export_file_retention_period_hours() {
return bulk_export_file_retention_period_hours;
}
public void setBulk_export_file_retention_period_hours(Integer bulk_export_file_retention_period_hours) {
this.bulk_export_file_retention_period_hours = bulk_export_file_retention_period_hours;
}
public static class Cors {
private Boolean allow_Credentials = true;
private List<String> allowed_origin = List.of("*");

View File

@@ -302,6 +302,12 @@ public class FhirServerConfigCommon {
jpaStorageSettings.setHSearchIndexPrefix(indexPrefix != null ? indexPrefix : "");
}
// Configure the bulk export file retention period
if (appProperties.getBulk_export_file_retention_period_hours() != null) {
jpaStorageSettings.setBulkExportFileRetentionPeriodHours(
appProperties.getBulk_export_file_retention_period_hours());
}
return jpaStorageSettings;
}