Class PropertyFileUsagePropertyProvider
java.lang.Object
org.axonframework.update.configuration.PropertyFileUsagePropertyProvider
- All Implemented Interfaces:
UsagePropertyProvider
@Internal
public class PropertyFileUsagePropertyProvider
extends Object
implements UsagePropertyProvider
A
UsagePropertyProvider that reads the AxonIQ Data Collection properties from a file located at
~/.axoniq/update-checker.properties.
If the file does not exist, it creates a default file with the default telemetry endpoint and opt-out settings, using
property names "telemetry_url" and "disabled" respectively. If the file cannot be written, it will
log a debug message and skip the property provider.
- Since:
- 5.0.0
- Author:
- Mitchell Herrijgers
-
Constructor Details
-
PropertyFileUsagePropertyProvider
public PropertyFileUsagePropertyProvider()
-
-
Method Details
-
getDisabled
Description copied from interface:UsagePropertyProviderReturns whether the Anonymous Usage Collection is disabled.- Specified by:
getDisabledin interfaceUsagePropertyProvider- Returns:
trueif the collection is disabled,nullif not specified, orfalseif enabled.
-
getUrl
Description copied from interface:UsagePropertyProviderReturns the URL for the Anonymous Usage Collection endpoint.- Specified by:
getUrlin interfaceUsagePropertyProvider- Returns:
- The URL as a
String, ornullif not specified.
-
priority
public int priority()Description copied from interface:UsagePropertyProviderReturns the priority of this property provider. Higher values indicate higher priority. Providers with higher priority will be checked first when retrieving properties.- Specified by:
priorityin interfaceUsagePropertyProvider- Returns:
- An
intrepresenting the priority of this provider.
-