public abstract class WorkflowAppService extends Object implements Service
Modifier and Type | Field and Description |
---|---|
static String |
APP_LIB_PATH_LIST |
static String |
CONF_PREFIX |
static String |
CONFG_MAX_WF_LENGTH |
static String |
HADOOP_USER |
static String |
OOZIE_SUBWORKFLOW_CLASSPATH_INHERITANCE |
static String |
OOZIE_WF_SUBWORKFLOW_CLASSPATH_INHERITANCE |
static String |
SYSTEM_LIB_PATH |
DEFAULT_LOCK_TIMEOUT, lockTimeout
Constructor and Description |
---|
WorkflowAppService() |
Modifier and Type | Method and Description |
---|---|
XConfiguration |
createProtoActionConf(org.apache.hadoop.conf.Configuration jobConf,
boolean isWorkflowJob)
Create proto configuration.
|
void |
destroy()
Destroy the workflow application service.
|
Class<? extends Service> |
getInterface()
Return the public interface for workflow application service.
|
org.apache.hadoop.fs.Path |
getSystemLibPath()
Returns Oozie system libpath.
|
void |
init(Services services)
Initialize the workflow application service.
|
abstract WorkflowApp |
parseDef(org.apache.hadoop.conf.Configuration jobConf)
Parse workflow definition.
|
abstract WorkflowApp |
parseDef(org.apache.hadoop.conf.Configuration jobConf,
org.apache.hadoop.conf.Configuration configDefault)
Parse workflow definition along with config-default.xml config
|
abstract WorkflowApp |
parseDef(String wfXml,
org.apache.hadoop.conf.Configuration jobConf)
Parse workflow definition.
|
protected String |
readDefinition(String appPath,
String user,
org.apache.hadoop.conf.Configuration conf)
Read workflow definition.
|
public static final String CONF_PREFIX
public static final String SYSTEM_LIB_PATH
public static final String APP_LIB_PATH_LIST
public static final String HADOOP_USER
public static final String CONFG_MAX_WF_LENGTH
public static final String OOZIE_SUBWORKFLOW_CLASSPATH_INHERITANCE
public static final String OOZIE_WF_SUBWORKFLOW_CLASSPATH_INHERITANCE
public WorkflowAppService()
public void destroy()
public Class<? extends Service> getInterface()
getInterface
in interface Service
WorkflowAppService
.protected String readDefinition(String appPath, String user, org.apache.hadoop.conf.Configuration conf) throws WorkflowException
appPath
- application path.user
- user name.WorkflowException
- thrown if the definition could not be read.public XConfiguration createProtoActionConf(org.apache.hadoop.conf.Configuration jobConf, boolean isWorkflowJob) throws WorkflowException
The proto configuration includes the user,group and the paths which need to be added to distributed cache. These paths include .jar,.so and the resource file paths.
jobConf
- job configuration.isWorkflowJob
- indicates if the job is a workflow job or not.WorkflowException
- thrown if the proto action configuration could not be created.public abstract WorkflowApp parseDef(org.apache.hadoop.conf.Configuration jobConf) throws WorkflowException
jobConf
- WorkflowException
public abstract WorkflowApp parseDef(org.apache.hadoop.conf.Configuration jobConf, org.apache.hadoop.conf.Configuration configDefault) throws WorkflowException
jobConf
- job configurationconfigDefault
- config from config-default.xmlWorkflowException
public abstract WorkflowApp parseDef(String wfXml, org.apache.hadoop.conf.Configuration jobConf) throws WorkflowException
wfXml
- workflow.jobConf
- job configurationWorkflowException
- thrown if the workflow application could not be parsed.public org.apache.hadoop.fs.Path getSystemLibPath()
NULL
.Copyright © 2018 Apache Software Foundation. All rights reserved.