Class LiquibaseRemoteAnalyticsConfiguration
java.lang.Object
liquibase.analytics.configuration.LiquibaseRemoteAnalyticsConfiguration
- All Implemented Interfaces:
AnalyticsConfiguration
,Plugin
LiquibaseRemoteAnalyticsConfiguration is responsible for fetching and providing
remote analytics configurations used by Liquibase.
This class uses a
Cache
to store the remote analytics configuration, which is
loaded from a specified URL endpoint.-
Field Summary
Fields inherited from interface liquibase.plugin.Plugin
PRIORITY_DATABASE, PRIORITY_DEFAULT, PRIORITY_NOT_APPLICABLE, PRIORITY_SPECIALIZED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the destination URL for analytics from the remote configuration.Retrieves the list of extension names included in the remote configuration.int
int
Retrieves the timeout value in milliseconds from the remote configuration.Retrieves the write key used for analytics reporting from the remote configuration.boolean
Determines if OSS analytics are enabled by reading the remote configuration.boolean
Determines if Pro analytics are enabled by reading the remote configuration.
-
Constructor Details
-
LiquibaseRemoteAnalyticsConfiguration
public LiquibaseRemoteAnalyticsConfiguration()
-
-
Method Details
-
getPriority
public int getPriority()- Specified by:
getPriority
in interfaceAnalyticsConfiguration
-
getTimeoutMillis
Retrieves the timeout value in milliseconds from the remote configuration.- Returns:
- the timeout in milliseconds
- Throws:
Exception
- if there is an issue fetching the configuration
-
getDestinationUrl
Retrieves the destination URL for analytics from the remote configuration.- Returns:
- the destination URL as a String
- Throws:
Exception
- if there is an issue fetching the configuration
-
isOssAnalyticsEnabled
Determines if OSS analytics are enabled by reading the remote configuration.- Specified by:
isOssAnalyticsEnabled
in interfaceAnalyticsConfiguration
- Returns:
- true if OSS analytics are enabled, false otherwise
- Throws:
Exception
- if there is an issue fetching the configuration
-
isProAnalyticsEnabled
Determines if Pro analytics are enabled by reading the remote configuration.- Specified by:
isProAnalyticsEnabled
in interfaceAnalyticsConfiguration
- Returns:
- true if Pro analytics are enabled, false otherwise
- Throws:
Exception
- if there is an issue fetching the configuration
-
getWriteKey
Retrieves the write key used for analytics reporting from the remote configuration.- Returns:
- the write key as a String
- Throws:
Exception
- if there is an issue fetching the configuration
-
getExtensionNames
Retrieves the list of extension names included in the remote configuration.- Returns:
- a list of extension names
- Throws:
Exception
- if there is an issue fetching the configuration
-