Package io.quarkus.analytics
Class ConfigService
java.lang.Object
io.quarkus.analytics.ConfigService
Decided the build analytics behaviour. Retrieves, stores and provides the configuration.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigService(ConfigClient client, AnonymousUserId userId, FileLocations fileLocations, io.quarkus.devtools.messagewriter.MessageWriter log) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisActive()True if build time analytics can be gathered.booleanisArtifactActive(String groupId, String quarkusVersion) If groupId has been disabled by local static config, false If Quarkus version has been disabled by remote config, falsevoiduserAcceptance(Function<String, String> analyticsEnabledSupplier)
-
Field Details
-
QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP
- See Also:
-
QUARKUS_ANALYTICS_PROMPT_TIMEOUT
- See Also:
-
ACCEPTANCE_PROMPT
-
-
Constructor Details
-
ConfigService
public ConfigService(ConfigClient client, AnonymousUserId userId, FileLocations fileLocations, io.quarkus.devtools.messagewriter.MessageWriter log)
-
-
Method Details
-
userAcceptance
-
isActive
public boolean isActive()True if build time analytics can be gathered.Disabled by default.
If running on CI, false.
If Not explicitly approved by user in dev mode, false
If analytics disabled by local property, false
If remote config not accessible, false
If disabled by remote config, false
- Returns:
- true if active
-
isArtifactActive
If groupId has been disabled by local static config, false If Quarkus version has been disabled by remote config, false- Parameters:
groupId-quarkusVersion-- Returns:
- true if active
-