|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.service.WorkflowAppService
public abstract class WorkflowAppService
Service that provides application workflow definition reading from the path and creation of the proto configuration.
Field Summary | |
---|---|
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
|
Fields inherited from interface org.apache.oozie.service.Service |
---|
DEFAULT_LOCK_TIMEOUT, lockTimeout, USE_XCOMMAND |
Constructor Summary | |
---|---|
WorkflowAppService()
|
Method Summary | |
---|---|
XConfiguration |
createProtoActionConf(org.apache.hadoop.conf.Configuration jobConf,
String authToken,
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,
String authToken)
Parse workflow definition. |
abstract WorkflowApp |
parseDef(String wfXml,
org.apache.hadoop.conf.Configuration jobConf)
Parse workflow definition. |
protected String |
readDefinition(String appPath,
String user,
String autToken,
org.apache.hadoop.conf.Configuration conf)
Read workflow definition. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public WorkflowAppService()
Method Detail |
---|
public void init(Services services)
init
in interface Service
services
- services instance.public void destroy()
destroy
in interface Service
public Class<? extends Service> getInterface()
getInterface
in interface Service
WorkflowAppService
.protected String readDefinition(String appPath, String user, String autToken, org.apache.hadoop.conf.Configuration conf) throws WorkflowException
appPath
- application path.user
- user name.autToken
- authentication token.
WorkflowException
- thrown if the definition could not be read.public XConfiguration createProtoActionConf(org.apache.hadoop.conf.Configuration jobConf, String authToken, boolean isWorkflowJob) throws WorkflowException
jobConf
- job configuration.authToken
- authentication token.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, String authToken) throws WorkflowException
jobConf
- job configuration.authToken
- authentication token.
WorkflowException
- thrown if the workflow application could not be parsed.public abstract WorkflowApp parseDef(String wfXml, org.apache.hadoop.conf.Configuration jobConf) throws WorkflowException
wfXml
- workflow.jobConf
- job configuration
WorkflowException
- thrown if the workflow application could not be parsed.public org.apache.hadoop.fs.Path getSystemLibPath()
NULL
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |