Skip to content

Commit

Permalink
rename config property constants (only source, not external config name)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Apr 23, 2024
1 parent 299c2a5 commit ff7e2b3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/main/java/io/cryostat/ConfigProperties.java
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/cryostat/reports/Reports.java
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ff7e2b3

Please sign in to comment.