public class FinalizeUpgradeAction extends AbstractUpgradeServerAction
Modifier and Type | Class and Description |
---|---|
protected static class |
FinalizeUpgradeAction.InfoTuple |
Modifier and Type | Field and Description |
---|---|
static String |
PREVIOUS_UPGRADE_NOT_COMPLETED_MSG |
agentConfigsHolder, m_amc, m_clusters, m_configHelper, m_metainfoProvider, m_upgradeDAO, m_upgradeHelper
actionLog, gson
ACTION_NAME, ACTION_USER_NAME, DEFAULT_LONG_RUNNING_TASK_TIMEOUT_SECONDS, WRAPPED_CLASS_NAME
Constructor and Description |
---|
FinalizeUpgradeAction() |
Modifier and Type | Method and Description |
---|---|
CommandReport |
execute(ConcurrentMap<String,Object> requestSharedDataContext)
Executes this ServerAction
This is typically called by the ServerActionExecutor in it's own thread, but there is no
guarantee that this is the case.
|
protected Set<FinalizeUpgradeAction.InfoTuple> |
validateComponentVersions(UpgradeContext upgradeContext)
Gets any host components which have not been propertly upgraded or
downgraded.
|
getClusters, getGson, getUpgradeContext
auditLog, createCommandReport, createCompletedCommandReport, getCommandParameters, getCommandParameterValue, getExecutionCommand, getHostRoleCommand, setExecutionCommand, setHostRoleCommand
public static final String PREVIOUS_UPGRADE_NOT_COMPLETED_MSG
public CommandReport execute(ConcurrentMap<String,Object> requestSharedDataContext) throws org.apache.ambari.server.AmbariException, InterruptedException
ServerAction
requestSharedDataContext
- a Map to be used a shared data among all ServerActions related
to a given requestorg.apache.ambari.server.AmbariException
InterruptedException
protected Set<FinalizeUpgradeAction.InfoTuple> validateComponentVersions(UpgradeContext upgradeContext) throws org.apache.ambari.server.AmbariException
upgradeContext
- the upgrade context (not null
).FinalizeUpgradeAction.InfoTuple
representing components which should
have been upgraded but did not.org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.