From c748807bb321c2530e5fca58eabc8edd87362466 Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Mon, 15 Apr 2024 13:21:51 -0400 Subject: [PATCH] rename config property constants (only source, not external config name) --- src/main/java/io/cryostat/ConfigProperties.java | 4 ++-- .../io/cryostat/reports/MemoryCachingReportsListener.java | 2 +- .../java/io/cryostat/reports/MemoryCachingReportsService.java | 2 +- src/main/java/io/cryostat/reports/Reports.java | 2 +- .../io/cryostat/reports/StorageCachingReportsListener.java | 2 +- .../io/cryostat/reports/StorageCachingReportsService.java | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/io/cryostat/ConfigProperties.java b/src/main/java/io/cryostat/ConfigProperties.java index 2c889e870..77ddc7c96 100644 --- a/src/main/java/io/cryostat/ConfigProperties.java +++ b/src/main/java/io/cryostat/ConfigProperties.java @@ -34,9 +34,9 @@ public class ConfigProperties { public static final String CONNECTIONS_FAILED_TIMEOUT = "cryostat.connections.failed-timeout"; public static final String REPORTS_SIDECAR_URL = "cryostat.services.reports.url"; - public static final String MEMORY_CACHE_ENABLED = + public static final String REPORTS_MEMORY_CACHE_ENABLED = "cryostat.services.reports.memory-cache.enabled"; - public static final String STORAGE_CACHE_ENABLED = + public static final String REPORTS_STORAGE_CACHE_ENABLED = "cryostat.services.reports.storage-cache.enabled"; public static final String ARCHIVED_REPORTS_STORAGE_CACHE_NAME = "cryostat.services.reports.storage-cache.name"; diff --git a/src/main/java/io/cryostat/reports/MemoryCachingReportsListener.java b/src/main/java/io/cryostat/reports/MemoryCachingReportsListener.java index 7eb49715b..cbd29a80a 100644 --- a/src/main/java/io/cryostat/reports/MemoryCachingReportsListener.java +++ b/src/main/java/io/cryostat/reports/MemoryCachingReportsListener.java @@ -40,7 +40,7 @@ class MemoryCachingReportsListener { @ConfigProperty(name = "quarkus.cache.enabled") boolean quarkusCache; - @ConfigProperty(name = ConfigProperties.MEMORY_CACHE_ENABLED) + @ConfigProperty(name = ConfigProperties.REPORTS_MEMORY_CACHE_ENABLED) boolean memoryCache; @Inject diff --git a/src/main/java/io/cryostat/reports/MemoryCachingReportsService.java b/src/main/java/io/cryostat/reports/MemoryCachingReportsService.java index 1fd1bb9ad..433538ff2 100644 --- a/src/main/java/io/cryostat/reports/MemoryCachingReportsService.java +++ b/src/main/java/io/cryostat/reports/MemoryCachingReportsService.java @@ -48,7 +48,7 @@ class MemoryCachingReportsService implements ReportsService { @ConfigProperty(name = "quarkus.cache.enabled") boolean quarkusCache; - @ConfigProperty(name = ConfigProperties.MEMORY_CACHE_ENABLED) + @ConfigProperty(name = ConfigProperties.REPORTS_MEMORY_CACHE_ENABLED) boolean memoryCache; @Inject diff --git a/src/main/java/io/cryostat/reports/Reports.java b/src/main/java/io/cryostat/reports/Reports.java index dfd3677a7..da110a52e 100644 --- a/src/main/java/io/cryostat/reports/Reports.java +++ b/src/main/java/io/cryostat/reports/Reports.java @@ -46,7 +46,7 @@ @Path("") public class Reports { - @ConfigProperty(name = ConfigProperties.STORAGE_CACHE_ENABLED) + @ConfigProperty(name = ConfigProperties.REPORTS_STORAGE_CACHE_ENABLED) boolean storageCacheEnabled; @ConfigProperty(name = ConfigProperties.ARCHIVED_REPORTS_STORAGE_CACHE_NAME) diff --git a/src/main/java/io/cryostat/reports/StorageCachingReportsListener.java b/src/main/java/io/cryostat/reports/StorageCachingReportsListener.java index a44fe133d..d4632f597 100644 --- a/src/main/java/io/cryostat/reports/StorageCachingReportsListener.java +++ b/src/main/java/io/cryostat/reports/StorageCachingReportsListener.java @@ -34,7 +34,7 @@ @ApplicationScoped class StorageCachingReportsListener { - @ConfigProperty(name = ConfigProperties.STORAGE_CACHE_ENABLED) + @ConfigProperty(name = ConfigProperties.REPORTS_STORAGE_CACHE_ENABLED) boolean enabled; @ConfigProperty(name = ConfigProperties.ARCHIVED_REPORTS_STORAGE_CACHE_NAME) diff --git a/src/main/java/io/cryostat/reports/StorageCachingReportsService.java b/src/main/java/io/cryostat/reports/StorageCachingReportsService.java index 7a4a6e2b1..ef6381159 100644 --- a/src/main/java/io/cryostat/reports/StorageCachingReportsService.java +++ b/src/main/java/io/cryostat/reports/StorageCachingReportsService.java @@ -56,7 +56,7 @@ @Dependent class StorageCachingReportsService implements ReportsService { - @ConfigProperty(name = ConfigProperties.STORAGE_CACHE_ENABLED) + @ConfigProperty(name = ConfigProperties.REPORTS_STORAGE_CACHE_ENABLED) boolean enabled; @ConfigProperty(name = ConfigProperties.ARCHIVED_REPORTS_STORAGE_CACHE_NAME)