public class AmbariActionExecutionHelper extends Object
Constructor and Description |
---|
AmbariActionExecutionHelper() |
Modifier and Type | Method and Description |
---|---|
void |
addExecutionCommandsToStage(ActionExecutionContext actionContext,
Stage stage,
Map<String,String> requestParams)
Add tasks to the stage based on the requested action execution
|
void |
addExecutionCommandsToStage(ActionExecutionContext actionContext,
Stage stage,
Map<String,String> requestParams,
boolean checkHostIsMemberOfCluster)
Add tasks to the stage based on the requested action execution
|
void |
validateAction(ExecuteActionRequest actionRequest)
Validates the request to execute an action.
|
public void validateAction(ExecuteActionRequest actionRequest) throws org.apache.ambari.server.AmbariException
actionRequest
- org.apache.ambari.server.AmbariException
public void addExecutionCommandsToStage(ActionExecutionContext actionContext, Stage stage, Map<String,String> requestParams) throws org.apache.ambari.server.AmbariException
actionContext
- the context associated with the actionstage
- stage into which tasks must be insertedrequestParams
- all request parameters (may be null)org.apache.ambari.server.AmbariException
- if the task can not be addedpublic void addExecutionCommandsToStage(ActionExecutionContext actionContext, Stage stage, Map<String,String> requestParams, boolean checkHostIsMemberOfCluster) throws org.apache.ambari.server.AmbariException
actionContext
- stage
- requestParams
- checkHostIsMemberOfCluster
- if true AmbariException will be thrown in case host is not member of cluster.org.apache.ambari.server.AmbariException
Copyright © 2022 Apache Software Foundation. All rights reserved.