org.apache.oozie.action.decision
Class DecisionActionExecutor
java.lang.Object
org.apache.oozie.action.ActionExecutor
org.apache.oozie.action.decision.DecisionActionExecutor
public class DecisionActionExecutor
- extends ActionExecutor
Methods inherited from class org.apache.oozie.action.ActionExecutor |
convertException, disableInit, enableInit, getActionDir, getActionDirPath, getActionSignal, getMaxRetries, getOozieConf, getOozieRuntimeDir, getOozieSystemId, getRetryInterval, getType, initActionType, registerError, resetInitInfo, setMaxRetries, setRetryInterval |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ACTION_TYPE
public static final String ACTION_TYPE
- See Also:
- Constant Field Values
XML_ERROR
public static final String XML_ERROR
- See Also:
- Constant Field Values
DecisionActionExecutor
public DecisionActionExecutor()
start
public void start(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
throws ActionExecutorException
- Description copied from class:
ActionExecutor
- Start an action. The
ActionExecutor.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.
- Specified by:
start
in class ActionExecutor
- Parameters:
context
- executor context.action
- the action to start.
- Throws:
ActionExecutorException
- thrown if the action could not start.
end
public void end(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
throws ActionExecutorException
- Description copied from class:
ActionExecutor
- End an action after it has executed. The
ActionExecutor.Context.setEndData(org.apache.oozie.client.WorkflowAction.Status, java.lang.String)
method must be called within this
method.
- Specified by:
end
in class ActionExecutor
- Parameters:
context
- executor context.action
- the action to end.
- Throws:
ActionExecutorException
- thrown if the action could not end.
check
public void check(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
throws ActionExecutorException
- Description copied from class:
ActionExecutor
- Check if an action has completed. This method must be implemented by Async Action Executors. If the action
has completed, the
ActionExecutor.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.
- Specified by:
check
in class ActionExecutor
- Parameters:
context
- executor context.action
- the action to end.
- Throws:
ActionExecutorException
- thrown if the action could not be checked.
kill
public void kill(ActionExecutor.Context context,
org.apache.oozie.client.WorkflowAction action)
throws ActionExecutorException
- Description copied from class:
ActionExecutor
- Kill an action. The
ActionExecutor.Context.setEndData(org.apache.oozie.client.WorkflowAction.Status, java.lang.String)
method must be called within this method.
- Specified by:
kill
in class ActionExecutor
- Parameters:
context
- executor context.action
- the action to kill.
- Throws:
ActionExecutorException
- thrown if the action could not be killed.
isCompleted
public boolean isCompleted(String externalStatus)
- Description copied from class:
ActionExecutor
- Return if the external status indicates that the action has completed.
- Specified by:
isCompleted
in class ActionExecutor
- Parameters:
externalStatus
- external status to check.
- Returns:
- if the external status indicates that the action has completed.
Copyright © 2013 Apache Software Foundation. All Rights Reserved.