public interface StackDefinitionModule<T,I>
Modifier and Type | Method and Description |
---|---|
void |
finalizeModule()
Lifecycle even which is called when the associated stack has been fully resolved.
|
String |
getId()
Obtain the id of the module.
|
I |
getModuleInfo()
Obtain the associated module information.
|
ModuleState |
getModuleState()
Module state.
|
boolean |
isDeleted()
Determine whether the module has been marked for deletion.
|
boolean |
isValid() |
void |
resolve(T parent,
Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions)
Resolve the module state with the specified parent.
|
void |
setValid(boolean valid) |
void resolve(T parent, Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions) throws org.apache.ambari.server.AmbariException
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 failsI getModuleInfo()
boolean isDeleted()
String getId()
void finalizeModule()
ModuleState getModuleState()
boolean isValid()
void setValid(boolean valid)
valid
- set validity flagCopyright © 2022 Apache Software Foundation. All rights reserved.