Class LiquibaseAnalyticsListener

java.lang.Object
liquibase.analytics.LiquibaseAnalyticsListener
All Implemented Interfaces:
AnalyticsListener, Plugin

public class LiquibaseAnalyticsListener extends Object implements AnalyticsListener
  • Constructor Details

    • LiquibaseAnalyticsListener

      public LiquibaseAnalyticsListener()
  • Method Details

    • getPriority

      public int getPriority()
      Specified by:
      getPriority in interface AnalyticsListener
    • handleEvent

      public void handleEvent(Event event) throws Exception
      Description copied from interface: AnalyticsListener
      Handles the specified event. Implementations of this method should define the logic for processing the event that is passed as a parameter.
      Specified by:
      handleEvent in interface AnalyticsListener
      Parameters:
      event - the event to be handled.
      Throws:
      Exception
    • sendEvent

      public static void sendEvent(Object requestBody, URL url, Logger logger, Level logLevel, String sendingLogMessage, String responseLogMessage, int connectTimeout, int readTimeout) throws Exception
      Throws:
      Exception
    • isEnabled

      public boolean isEnabled()
      Check whether analytics are enabled. This method handles all the various ways that analytics can be enabled or disabled and should be the primary way to validate whether analytics are turned on. You should not use the argument AnalyticsArgs.ENABLED.
      Specified by:
      isEnabled in interface AnalyticsListener
      Returns:
      true if analytics are enabled, false otherwise.
      Throws:
      Exception - if there was a problem determining the enabled status of analytics
    • didUserEnableAnalytics

      protected Boolean didUserEnableAnalytics(Logger log)
    • isDevAnalyticsEnabled

      protected boolean isDevAnalyticsEnabled(Logger log)
    • isAnalyticsEnabledBasedOnLicense

      protected boolean isAnalyticsEnabledBasedOnLicense(Logger log, Boolean userSuppliedEnabled)
    • isOssRemoteAnalyticsEnabled

      protected static boolean isOssRemoteAnalyticsEnabled(AnalyticsConfigurationFactory analyticsConfigurationFactory)
    • isProRemoteAnalyticsEnabled

      protected boolean isProRemoteAnalyticsEnabled(AnalyticsConfigurationFactory analyticsConfigurationFactory)