Package io.quarkus.analytics
Class ConfigService
- java.lang.Object
-
- io.quarkus.analytics.ConfigService
-
public class ConfigService extends Object
Decided the build analytics behaviour. Retrieves, stores and provides the configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCEPTANCE_PROMPTstatic StringQUARKUS_ANALYTICS_DISABLED_LOCAL_PROPstatic StringQUARKUS_ANALYTICS_PROMPT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description ConfigService(ConfigClient client, AnonymousUserId userId, FileLocations fileLocations, MessageWriter log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisActive()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 Detail
-
QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP
public static final String QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP
- See Also:
- Constant Field Values
-
QUARKUS_ANALYTICS_PROMPT_TIMEOUT
public static final String QUARKUS_ANALYTICS_PROMPT_TIMEOUT
- See Also:
- Constant Field Values
-
ACCEPTANCE_PROMPT
public static final String ACCEPTANCE_PROMPT
-
-
Constructor Detail
-
ConfigService
public ConfigService(ConfigClient client, AnonymousUserId userId, FileLocations fileLocations, MessageWriter log)
-
-
Method Detail
-
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
-
-