Class ClasspathFileHealthCheckWhitelist

java.lang.Object
com.atlassian.healthcheck.spi.impl.ClasspathFileHealthCheckWhitelist
All Implemented Interfaces:
HealthCheckWhitelist

public class ClasspathFileHealthCheckWhitelist extends Object implements HealthCheckWhitelist
Looks on the classpath for healthcheck whitelist files named atlassian-healthcheck-whitelist.txt. These files are in the application core, since this is where we modify the set of installed plugins.

Format: # Optional comments DisabledPluginModulesHealthCheck=my.plugin.key:my.module.key1 DisabledPluginModulesHealthCheck=my.plugin.key2:my.module.key4 DisabledPluginsHealthCheck=my.plugin.key3 etc.

Since:
5.2.0
  • Constructor Details

    • ClasspathFileHealthCheckWhitelist

      public ClasspathFileHealthCheckWhitelist()
  • Method Details

    • getWhitelistedItemsForHealthCheck

      public Set<String> getWhitelistedItemsForHealthCheck(String whitelistKey)
      Description copied from interface: HealthCheckWhitelist
      Get items that should currently be ignored if they fail when running a particular healthcheck.

      The meaning of the returned items is specific to the check being run; for example, it might be plugin or module keys.

      Specified by:
      getWhitelistedItemsForHealthCheck in interface HealthCheckWhitelist
      Parameters:
      whitelistKey - the key used by the specific healthcheck implementation, e.g. from com.atlassian.healthcheck.checks.plugin.AbstractPluginHealthCheck#getWhitelistKey()