Modifier and Type | Method and Description |
---|---|
static ConfigUpgradePack |
UpgradeResourceProvider.ConfigurationPackBuilder.build(UpgradeContext cx)
Builds the configurations to use for the specified upgrade and source
stack.
|
protected UpgradeEntity |
UpgradeResourceProvider.createUpgrade(UpgradeContext upgradeContext)
Creates the upgrade.
|
Modifier and Type | Method and Description |
---|---|
protected UpgradeContext |
AbstractUpgradeServerAction.getUpgradeContext(Cluster cluster)
Gets an initialized
UpgradeContext for the in-progress upgrade. |
Modifier and Type | Method and Description |
---|---|
protected Set<FinalizeUpgradeAction.InfoTuple> |
FinalizeUpgradeAction.validateComponentVersions(UpgradeContext upgradeContext)
Gets any host components which have not been propertly upgraded or
downgraded.
|
Constructor and Description |
---|
MasterHostResolver(Cluster cluster,
ConfigHelper configHelper,
UpgradeContext upgradeContext)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ClusterGrouping.ClusterBuilder.add(UpgradeContext ctx,
HostsType hostsType,
String service,
boolean clientOnly,
UpgradePack.ProcessingComponent pc,
Map<String,String> params) |
void |
ServiceCheckGrouping.ServiceCheckBuilder.add(UpgradeContext ctx,
HostsType hostsType,
String service,
boolean clientOnly,
UpgradePack.ProcessingComponent pc,
Map<String,String> params)
Adds a processing component that will be built into stage wrappers.
|
List<StageWrapper> |
ClusterGrouping.ClusterBuilder.build(UpgradeContext upgradeContext,
List<StageWrapper> stageWrappers)
Builds the stage wrappers.
|
List<StageWrapper> |
ServiceCheckGrouping.ServiceCheckBuilder.build(UpgradeContext upgradeContext,
List<StageWrapper> stageWrappers)
Builds the stage wrappers.
|
boolean |
SecurityCondition.isSatisfied(UpgradeContext upgradeContext)
Asks the condition whether it is currently satisfied.
|
boolean |
Condition.isSatisfied(UpgradeContext upgradeContext)
Asks the condition whether it is currently satisfied.
|
boolean |
ConfigurationCondition.isSatisfied(UpgradeContext upgradeContext)
Asks the condition whether it is currently satisfied.
|
Modifier and Type | Method and Description |
---|---|
UpgradeContext |
UpgradeContextFactory.create(Cluster cluster,
Map<String,Object> upgradeRequestMap)
Creates an
UpgradeContext which is injected with dependencies. |
UpgradeContext |
UpgradeContextFactory.create(Cluster cluster,
UpgradeEntity upgradeEntity)
Creates an
UpgradeContext which is injected with dependencies. |
Modifier and Type | Method and Description |
---|---|
void |
ParallelClientGroupingBuilder.add(UpgradeContext upgradeContext,
HostsType hostsType,
String service,
boolean clientOnly,
UpgradePack.ProcessingComponent pc,
Map<String,String> params) |
abstract void |
StageWrapperBuilder.add(UpgradeContext upgradeContext,
HostsType hostsType,
String service,
boolean clientOnly,
UpgradePack.ProcessingComponent pc,
Map<String,String> params)
Adds a processing component that will be built into stage wrappers.
|
protected List<StageWrapper> |
StageWrapperBuilder.afterBuild(UpgradeContext upgradeContext,
List<StageWrapper> stageWrappers)
Performs any post-processing that needs to be performed on the list of
stage wrappers.
|
protected List<StageWrapper> |
StageWrapperBuilder.beforeBuild(UpgradeContext upgradeContext)
Performs any pre-processing that needs to be performed on the list of stage
wrappers.
|
List<StageWrapper> |
StageWrapperBuilder.build(UpgradeContext upgradeContext)
Builds the stage wrappers, including any pre- and post-procesing that needs
to be performed.
|
List<StageWrapper> |
ParallelClientGroupingBuilder.build(UpgradeContext upgradeContext,
List<StageWrapper> stageWrappers) |
abstract List<StageWrapper> |
StageWrapperBuilder.build(UpgradeContext upgradeContext,
List<StageWrapper> stageWrappers)
Builds the stage wrappers.
|
List<UpgradeGroupHolder> |
UpgradeHelper.createSequence(UpgradePack upgradePack,
UpgradeContext context)
Generates a list of UpgradeGroupHolder items that are used to execute either
an upgrade or a downgrade.
|
protected int |
StageWrapperBuilder.getParallelHostCount(UpgradeContext ctx,
int defaultValue)
Gets the parallel setting for a grouping, if defined.
|
void |
UpgradeHelper.publishDesiredRepositoriesUpdates(UpgradeContext upgradeContext) |
protected Task |
StageWrapperBuilder.resolveTask(UpgradeContext context,
UpgradePack.ProcessingComponent pc)
The upgrade packs are written such that there is one and only one upgrade element
for a component, all other directives go in (pre|post)-(upgrade|downgrade) elements.
|
protected List<Task> |
StageWrapperBuilder.resolveTasks(UpgradeContext context,
boolean preTasks,
UpgradePack.ProcessingComponent pc)
Determine the list of pre- or post-tasks given these rules
When performing an upgrade, only use upgrade tasks
When performing a downgrade, use the downgrade tasks if they are defined
When performing a downgrade, but no downgrade tasks exist, reuse the upgrade tasks
|
void |
UpgradeHelper.updateDesiredRepositoriesAndConfigs(UpgradeContext upgradeContext)
Updates the various repositories and configurations for services
participating in the upgrade or downgrade.
|
Copyright © 2022 Apache Software Foundation. All rights reserved.