|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ActionExecutor.Context
Context information passed to the ActionExecutor methods.
| Method Summary | |
|---|---|
org.apache.hadoop.fs.Path |
getActionDir()
|
org.apache.hadoop.fs.FileSystem |
getAppFileSystem()
|
java.lang.String |
getCallbackUrl(java.lang.String externalStatusVar)
Create the callback URL for the action. |
ELEvaluator |
getELEvaluator()
Return an ELEvaluator with the context injected. |
org.apache.hadoop.conf.Configuration |
getProtoActionConf()
Return a proto configuration for actions with auth properties already set. |
java.lang.String |
getRecoveryId()
Get the Action Recovery ID. |
java.lang.String |
getVar(java.lang.String name)
Get a workflow action variable. |
WorkflowJob |
getWorkflow()
Return the workflow job. |
boolean |
isRetry()
Return if the executor invocation is a retry or not. |
void |
setEndData(WorkflowAction.Status status,
java.lang.String signalValue)
Set the action end completion information for a completed action. |
void |
setErrorInfo(java.lang.String str,
java.lang.String exMsg)
|
void |
setExecutionData(java.lang.String externalStatus,
java.util.Properties actionData)
Set the action execution completion information for an action. |
void |
setExternalStatus(java.lang.String externalStatus)
Sets the external status for the action in context. |
void |
setStartData(java.lang.String externalId,
java.lang.String trackerUri,
java.lang.String consoleUrl)
Set the action tracking information for an successfully started action. |
void |
setVar(java.lang.String name,
java.lang.String value)
Set a workflow action variable. |
| Method Detail |
|---|
java.lang.String getCallbackUrl(java.lang.String externalStatusVar)
externalStatusVar - variable for the caller to inject the external status.
org.apache.hadoop.conf.Configuration getProtoActionConf()
WorkflowJob getWorkflow()
ELEvaluator getELEvaluator()
void setVar(java.lang.String name,
java.lang.String value)
name - variable name.value - variable value, null removes the variable.java.lang.String getVar(java.lang.String name)
name - variable name.
null if not set.
void setStartData(java.lang.String externalId,
java.lang.String trackerUri,
java.lang.String consoleUrl)
externalId - the action external ID.trackerUri - the action tracker URI.consoleUrl - the action console URL.
void setExecutionData(java.lang.String externalStatus,
java.util.Properties actionData)
WorkflowAction.Status.DONE
externalStatus - the action external end status.actionData - the action data on completion, null if none.
void setEndData(WorkflowAction.Status status,
java.lang.String signalValue)
status - the action end status, it can be WorkflowAction.Status.OK or
WorkflowAction.Status.ERROR.signalValue - the action external end status.boolean isRetry()
void setExternalStatus(java.lang.String externalStatus)
externalStatus - the external status.java.lang.String getRecoveryId()
org.apache.hadoop.fs.Path getActionDir()
throws HadoopAccessorException,
java.io.IOException,
java.net.URISyntaxException
HadoopAccessorException
java.io.IOException
java.net.URISyntaxException
org.apache.hadoop.fs.FileSystem getAppFileSystem()
throws HadoopAccessorException,
java.io.IOException,
java.net.URISyntaxException
java.io.IOException
java.net.URISyntaxException
HadoopAccessorException
void setErrorInfo(java.lang.String str,
java.lang.String exMsg)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||