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 Details

    • QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP

      public static final String QUARKUS_ANALYTICS_DISABLED_LOCAL_PROP
      See Also:
    • QUARKUS_ANALYTICS_PROMPT_TIMEOUT

      public static final String QUARKUS_ANALYTICS_PROMPT_TIMEOUT
      See Also:
    • ACCEPTANCE_PROMPT

      public static final String ACCEPTANCE_PROMPT
  • Constructor Details

  • Method Details

    • userAcceptance

      public void userAcceptance(Function<String,String> analyticsEnabledSupplier)
    • 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

      public boolean isArtifactActive(String groupId, String quarkusVersion)
      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