public class ConfigurationModule extends BaseModule<ConfigurationModule,ConfigurationInfo> implements Validable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
valid
validity flag
|
moduleState| Constructor and Description |
|---|
ConfigurationModule(String configType,
ConfigurationInfo info)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addError(String error) |
void |
addErrors(Collection<String> errors) |
String |
getConfigType()
Obtain the configuration type.
|
Collection<String> |
getErrors() |
String |
getId()
Obtain the id of the module.
|
ConfigurationInfo |
getModuleInfo()
Obtain the associated module information.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(ConfigurationModule parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions)
Resolve the module state with the specified parent.
|
void |
setDeleted(boolean isDeleted)
Set the deleted flag.
|
void |
setValid(boolean valid) |
finalizeChildModules, finalizeModule, getModuleState, mergeChildModulespublic ConfigurationModule(String configType, ConfigurationInfo info)
configType - configuration typeinfo - configuration infopublic Collection<String> getErrors()
public void resolve(ConfigurationModule parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions) throws org.apache.ambari.server.AmbariException
StackDefinitionModuleresolve in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>parent - the parent that this module will be merged withallStacks - collection of all stack modules in the treecommonServices - collection of all common service modules in the treeextensions - collection of all extension modules in the treeorg.apache.ambari.server.AmbariException - if resolution failspublic ConfigurationInfo getModuleInfo()
StackDefinitionModulegetModuleInfo in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>public boolean isDeleted()
StackDefinitionModuleisDeleted in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>public String getId()
StackDefinitionModulegetId in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>public String getConfigType()
public void setDeleted(boolean isDeleted)
isDeleted - whether the configuration has been marked for deletionpublic boolean isValid()
isValid in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>isValid in interface Validablepublic void setValid(boolean valid)
setValid in interface StackDefinitionModule<ConfigurationModule,ConfigurationInfo>setValid in interface Validablevalid - set validity flagpublic void addErrors(Collection<String> errors)
Copyright © 2022 Apache Software Foundation. All rights reserved.