public abstract class BaseModule<T,I> extends Object implements StackDefinitionModule<T,I>
Modifier and Type | Field and Description |
---|---|
protected ModuleState |
moduleState
Module visitation state
|
Constructor and Description |
---|
BaseModule() |
Modifier and Type | Method and Description |
---|---|
protected void |
finalizeChildModules(Collection<? extends StackDefinitionModule> modules)
Finalize a modules child components.
|
void |
finalizeModule()
Lifecycle even which is called when the associated stack has been fully resolved.
|
ModuleState |
getModuleState()
Module state.
|
protected <T extends StackDefinitionModule<T,?>> |
mergeChildModules(Map<String,StackModule> allStacks,
Map<String,ServiceModule> commonServices,
Map<String,ExtensionModule> extensions,
Map<String,T> modules,
Map<String,T> parentModules)
Merges child modules with the corresponding parent modules.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getModuleInfo, isDeleted, isValid, resolve, setValid
protected ModuleState moduleState
public ModuleState getModuleState()
getModuleState
in interface StackDefinitionModule<T,I>
protected <T extends StackDefinitionModule<T,?>> Collection<T> mergeChildModules(Map<String,StackModule> allStacks, Map<String,ServiceModule> commonServices, Map<String,ExtensionModule> extensions, Map<String,T> modules, Map<String,T> parentModules) throws org.apache.ambari.server.AmbariException
allStacks
- collection of all stack module in stack definitioncommonServices
- collection of all common service module in stack definitionmodules
- child modules of this module that are to be mergedparentModules
- parent modules which the modules are to be merged withorg.apache.ambari.server.AmbariException
protected void finalizeChildModules(Collection<? extends StackDefinitionModule> modules)
modules
- child modules to finalizepublic void finalizeModule()
StackDefinitionModule
finalizeModule
in interface StackDefinitionModule<T,I>
Copyright © 2022 Apache Software Foundation. All rights reserved.