|
||||||||||
| 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 java.lang.String |
APP_LIB_PATH_LIST
|
static java.lang.String |
HADOOP_JT_KERBEROS_NAME
|
static java.lang.String |
HADOOP_NN_KERBEROS_NAME
|
static java.lang.String |
HADOOP_UGI
|
static java.lang.String |
HADOOP_USER
|
| Fields inherited from interface org.apache.oozie.service.Service |
|---|
CONF_PREFIX |
| Constructor Summary | |
|---|---|
WorkflowAppService()
|
|
| Method Summary | |
|---|---|
XConfiguration |
createProtoActionConf(org.apache.hadoop.conf.Configuration jobConf,
java.lang.String authToken)
Create proto configuration. |
void |
destroy()
Destroy the workflow application service. |
java.lang.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,
java.lang.String authToken)
Parse workflow definition. |
abstract WorkflowApp |
parseDef(java.lang.String wfXml)
Parse workflow definition. |
protected java.lang.String |
readDefinition(java.lang.String appPath,
java.lang.String user,
java.lang.String group,
java.lang.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 java.lang.String APP_LIB_PATH_LIST
public static final java.lang.String HADOOP_UGI
public static final java.lang.String HADOOP_USER
public static final java.lang.String HADOOP_JT_KERBEROS_NAME
public static final java.lang.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 java.lang.Class<? extends Service> getInterface()
getInterface in interface ServiceWorkflowAppService.
protected java.lang.String readDefinition(java.lang.String appPath,
java.lang.String user,
java.lang.String group,
java.lang.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,
java.lang.String authToken)
throws WorkflowException
jobConf - job configuration.authToken - authentication token.
WorkflowException - thrown if the proto action configuration could not be created.
public abstract WorkflowApp parseDef(org.apache.hadoop.conf.Configuration jobConf,
java.lang.String authToken)
throws WorkflowException
jobConf - job configuration.authToken - authentication token.
WorkflowException - thrown if the workflow application could not be parsed.
public abstract WorkflowApp parseDef(java.lang.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 | |||||||||