public class UpgradeCheckRegistry extends Object
UpgradeCheckRegistry contains the ordered list of all pre-upgrade
 checks. This will order the checks according to
 PreUpgradeCheckComparator.
 There are two types of checks which can be loaded into this registry:
| Modifier and Type | Class and Description | 
|---|---|
| static class  | UpgradeCheckRegistry.PluginUpgradeChecksEncapsulates information about which plugins could and could not be loaded
 from a stack. | 
| Constructor and Description | 
|---|
| UpgradeCheckRegistry() | 
| Modifier and Type | Method and Description | 
|---|---|
| List<org.apache.ambari.spi.upgrade.UpgradeCheck> | getBuiltInUpgradeChecks()Gets a list of all of the built-in upgrade checks. | 
| Set<String> | getFailedPluginClassNames()Gets all of the upgrade check classes defined in upgrade packs which were
 not able to be loaded and instantiated. | 
| List<org.apache.ambari.spi.upgrade.UpgradeCheck> | getFilteredUpgradeChecks(UpgradePack upgradePack)Gets the ordered upgrade checks which should execute for the specified
 upgrade pack. | 
| void | register(org.apache.ambari.spi.upgrade.UpgradeCheck upgradeCheck)Register an upgrade check. | 
public void register(org.apache.ambari.spi.upgrade.UpgradeCheck upgradeCheck)
upgradeCheck - the check to register (not null).public List<org.apache.ambari.spi.upgrade.UpgradeCheck> getBuiltInUpgradeChecks()
public List<org.apache.ambari.spi.upgrade.UpgradeCheck> getFilteredUpgradeChecks(UpgradePack upgradePack) throws org.apache.ambari.server.AmbariException
 This collection of upgrade checks will be further scrutinized via
 CheckQualifications to determine if they indeed need to run by the
 CheckHelper.
upgradePack - Upgrade pack object with the list of required checks to be
          includedorg.apache.ambari.server.AmbariExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.