|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
HADOOP_JT_KERBEROS_NAME
|
static String |
HADOOP_NN_KERBEROS_NAME
|
static String |
HADOOP_UGI
|
static String |
HADOOP_USER
|
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. |
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)
Parse workflow definition. |
protected String |
readDefinition(String appPath,
String user,
String group,
String autToken)
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_UGI
public static final String HADOOP_USER
public static final String HADOOP_JT_KERBEROS_NAME
public static final String HADOOP_NN_KERBEROS_NAME
| Constructor Detail |
|---|
public WorkflowAppService()
| Method Detail |
|---|
public void init(Services services)
init in interface Serviceservices - services instance.public void destroy()
destroy in interface Servicepublic Class<? extends Service> getInterface()
getInterface in interface ServiceWorkflowAppService.
protected String readDefinition(String appPath,
String user,
String group,
String autToken)
throws WorkflowException
appPath - application path.user - user name.group - group 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)
throws WorkflowException
wfXml - workflow.
WorkflowException - thrown if the workflow application could not be parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||