public final class ConfigurationCondition extends Condition
ConfigurationCondition
class is used to represent a condition on
a property.Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationCondition.ComparisonType
The type of comparison to make.
|
Modifier and Type | Field and Description |
---|---|
ConfigurationCondition.ComparisonType |
comparisonType
The type of comparison to make.
|
String |
property
The configuration property key.
|
boolean |
returnValueIfConfigMissing
The value to return if comparison type is in (=, !=, contains, !contains) and the config is missing.
|
String |
type
The configuration type, such as
hdfs-site . |
String |
value
The value to compare against; only valid if comparison type is in (=, !=, contains, !contains).
|
Constructor and Description |
---|
ConfigurationCondition() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSatisfied(UpgradeContext upgradeContext)
Asks the condition whether it is currently satisfied.
|
String |
toString() |
public String type
hdfs-site
.public String property
public String value
public boolean returnValueIfConfigMissing
public ConfigurationCondition.ComparisonType comparisonType
public boolean isSatisfied(UpgradeContext upgradeContext)
isSatisfied
in class Condition
upgradeContext
- the upgrade context.true
if the condition is satisfied, false
otherwise.Copyright © 2022 Apache Software Foundation. All rights reserved.