public class HardcodedStackVersionPropertiesCheck extends ClusterCheck
clustersProvider| Constructor and Description |
|---|
HardcodedStackVersionPropertiesCheck() |
| Modifier and Type | Method and Description |
|---|---|
static Pattern |
getHardcodeSearchPattern(String hdpVersion)
Returns pattern that looks for hdp version hardcoded occurences, except
those that start with "-Dhdp.version=" string
|
org.apache.ambari.spi.upgrade.UpgradeCheckResult |
perform(org.apache.ambari.spi.upgrade.UpgradeCheckRequest request) |
static boolean |
stringContainsVersionHardcode(String string,
Pattern searchPattern)
Looks for search pattern in string
|
formatEntityList, getApplicableServices, getCheckDescription, getDescription, getFailReason, getFailReason, getProperty, getQualificationspublic HardcodedStackVersionPropertiesCheck()
public org.apache.ambari.spi.upgrade.UpgradeCheckResult perform(org.apache.ambari.spi.upgrade.UpgradeCheckRequest request)
throws org.apache.ambari.server.AmbariException
org.apache.ambari.server.AmbariExceptionpublic static Pattern getHardcodeSearchPattern(String hdpVersion)
hdpVersion - hdp version to search forCopyright © 2022 Apache Software Foundation. All rights reserved.