public class AddComponentAction extends AbstractUpgradeServerAction
AddComponentAction
is used to add a component during an upgrade.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 |
---|
AddComponentAction() |
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.
|
getClusters, getGson, getUpgradeContext
auditLog, createCommandReport, createCompletedCommandReport, getCommandParameters, getCommandParameterValue, getExecutionCommand, getHostRoleCommand, setExecutionCommand, setHostRoleCommand
public CommandReport execute(ConcurrentMap<String,Object> requestSharedDataContext) throws org.apache.ambari.server.AmbariException, InterruptedException
requestSharedDataContext
- a Map to be used a shared data among all ServerActions related
to a given requestorg.apache.ambari.server.AmbariException
InterruptedException
Copyright © 2022 Apache Software Foundation. All rights reserved.