public class SubWorkflowActionExecutor extends ActionExecutor
ActionExecutor.Context| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_TYPE |
static String |
LOCAL |
static String |
PARENT_ID |
static String |
SUBWORKFLOW_MAX_DEPTH |
CONF_PREFIX, ERROR_OTHER, MAX_RETRIES, requiresNNJT, RETRY_INTERVAL| Modifier | Constructor and Description |
|---|---|
protected |
SubWorkflowActionExecutor() |
| Modifier and Type | Method and Description |
|---|---|
void |
check(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
Check if an action has completed.
|
protected String |
checkIfRunning(org.apache.oozie.client.OozieClient oozieClient,
String extId) |
void |
end(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
End an action after it has executed.
|
protected org.apache.oozie.client.OozieClient |
getWorkflowClient(ActionExecutor.Context context,
String oozieUri) |
void |
initActionType()
Invoked once at system initialization time.
|
protected void |
injectCallback(ActionExecutor.Context context,
org.apache.hadoop.conf.Configuration conf) |
protected void |
injectInline(org.jdom.Element eConf,
org.apache.hadoop.conf.Configuration subWorkflowConf) |
protected void |
injectParent(String parentId,
org.apache.hadoop.conf.Configuration conf) |
protected void |
injectRecovery(String externalId,
org.apache.hadoop.conf.Configuration conf) |
boolean |
isCompleted(String externalStatus)
Return if the external status indicates that the action has completed.
|
void |
kill(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
Kill an action.
|
void |
start(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
Start an action.
|
protected void |
verifyAndInjectSubworkflowDepth(org.apache.hadoop.conf.Configuration parentConf,
org.apache.hadoop.conf.Configuration conf) |
convertException, disableInit, enableInit, getActionDir, getActionDirPath, getActionSignal, getMaxRetries, getOozieConf, getOozieRuntimeDir, getOozieSystemId, getRetryInterval, getType, registerError, resetInitInfo, setMaxRetries, setRetryIntervalpublic static final String ACTION_TYPE
public static final String LOCAL
public static final String PARENT_ID
public static final String SUBWORKFLOW_MAX_DEPTH
protected SubWorkflowActionExecutor()
public void initActionType()
ActionExecutorActionExecutor.registerError(java.lang.String, org.apache.oozie.action.ActionExecutorException.ErrorType, java.lang.String) method to register
all its possible errors. Subclasses overriding must invoke super.initActionType in class ActionExecutorprotected org.apache.oozie.client.OozieClient getWorkflowClient(ActionExecutor.Context context, String oozieUri)
protected void injectInline(org.jdom.Element eConf, org.apache.hadoop.conf.Configuration subWorkflowConf) throws IOException, ActionExecutorException
IOExceptionActionExecutorExceptionprotected void injectCallback(ActionExecutor.Context context, org.apache.hadoop.conf.Configuration conf)
protected void injectRecovery(String externalId, org.apache.hadoop.conf.Configuration conf)
protected void injectParent(String parentId, org.apache.hadoop.conf.Configuration conf)
protected void verifyAndInjectSubworkflowDepth(org.apache.hadoop.conf.Configuration parentConf, org.apache.hadoop.conf.Configuration conf) throws ActionExecutorException
ActionExecutorExceptionprotected String checkIfRunning(org.apache.oozie.client.OozieClient oozieClient, String extId) throws org.apache.oozie.client.OozieClientException
org.apache.oozie.client.OozieClientExceptionpublic void start(ActionExecutor.Context context, org.apache.oozie.client.WorkflowAction action) throws ActionExecutorException
ActionExecutorActionExecutor.Context.setStartData(java.lang.String, java.lang.String, java.lang.String) method must be called within this method. If the
action has completed, the ActionExecutor.Context.setExecutionData(java.lang.String, java.util.Properties) method must be called within this method.start in class ActionExecutorcontext - executor context.action - the action to start.ActionExecutorException - thrown if the action could not start.public void end(ActionExecutor.Context context, org.apache.oozie.client.WorkflowAction action) throws ActionExecutorException
ActionExecutorActionExecutor.Context.setEndData(org.apache.oozie.client.WorkflowAction.Status, java.lang.String) method must be called within this
method.end in class ActionExecutorcontext - executor context.action - the action to end.ActionExecutorException - thrown if the action could not end.public void check(ActionExecutor.Context context, org.apache.oozie.client.WorkflowAction action) throws ActionExecutorException
ActionExecutorActionExecutor.Context.setExecutionData(java.lang.String, java.util.Properties) method must be called within this method. If the action
has not completed, the ActionExecutor.Context.setExternalStatus(java.lang.String) method must be called within this method.check in class ActionExecutorcontext - executor context.action - the action to end.ActionExecutorException - thrown if the action could not be checked.public void kill(ActionExecutor.Context context, org.apache.oozie.client.WorkflowAction action) throws ActionExecutorException
ActionExecutorActionExecutor.Context.setEndData(org.apache.oozie.client.WorkflowAction.Status, java.lang.String) method must be called within this method.kill in class ActionExecutorcontext - executor context.action - the action to kill.ActionExecutorException - thrown if the action could not be killed.public boolean isCompleted(String externalStatus)
ActionExecutorisCompleted in class ActionExecutorexternalStatus - external status to check.Copyright © 2014 Apache Software Foundation. All Rights Reserved.