Class UpdateChecker

java.lang.Object
org.axonframework.updates.UpdateChecker
All Implemented Interfaces:
Runnable, Lifecycle

public class UpdateChecker extends Object implements Runnable, Lifecycle
The UpdateChecker reports Anonymous usage data to AxonIQ periodically. In return, it receives information about available upgrades and vulnerabilities in the AxonIQ libraries used. These upgrades and vulnerabilities are reported to the configured UpdateCheckerReporter.

The task will not run if the user has opted out of anonymous usage reporting. There are three ways to disable the anonymous usage reporting:

  1. Set the environment variable AXONIQ_UPDATE_CHECKER_DISABLED=true.
  2. Run the JVM with -Daxoniq.update-checker.disabled=true.
  3. Create the file $HOME/.axoniq/update-checker.properties with content disabled=true
These methods are listed in order of precedence, meaning that if the environment variable is set, it will take precedence over the JVM property and the file. Explicitly setting the property to disabled=false in a method of higher precedence will ignore the lower precedence disabled.

This class is not intended to be in use during the running of test suites and therefore does not run when it detects one.

Since:
4.12.0
Author:
Mitchell Herrijgers