public static interface ActionExecutor.Context
| Modifier and Type | Method and Description |
|---|---|
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.
|
org.apache.oozie.client.WorkflowJob |
getWorkflow()
Return the workflow job.
|
boolean |
isRetry()
Return if the executor invocation is a retry or not.
|
void |
setEndData(org.apache.oozie.client.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 |
setExecutionStats(java.lang.String jsonStats)
Set execution statistics information for a particular action.
|
void |
setExternalChildIDs(java.lang.String externalChildIDs)
Set external child IDs for a particular action (Eg: pig).
|
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.
|
java.lang.String getCallbackUrl(java.lang.String externalStatusVar)
externalStatusVar - variable for the caller to inject the external status.org.apache.hadoop.conf.Configuration getProtoActionConf()
org.apache.oozie.client.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.DONEexternalStatus - the action external end status.actionData - the action data on completion, null if none.void setExecutionStats(java.lang.String jsonStats)
WorkflowAction.Status.DONEjsonStats - the JSON string representation of the stats.void setExternalChildIDs(java.lang.String externalChildIDs)
WorkflowAction.Status.DONEexternalChildIDs - the external child IDs as a comma-delimited string.void setEndData(org.apache.oozie.client.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
HadoopAccessorExceptionjava.io.IOExceptionjava.net.URISyntaxExceptionorg.apache.hadoop.fs.FileSystem getAppFileSystem() throws HadoopAccessorException, java.io.IOException, java.net.URISyntaxException
java.io.IOExceptionjava.net.URISyntaxExceptionHadoopAccessorExceptionvoid setErrorInfo(java.lang.String str, java.lang.String exMsg)
Copyright © 2018 Apache Software Foundation. All Rights Reserved.