|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.BaseEngine
public abstract class BaseEngine
| Field Summary | |
|---|---|
protected java.lang.String |
authToken
|
protected java.lang.String |
user
|
| Constructor Summary | |
|---|---|
BaseEngine()
|
|
| Method Summary | |
|---|---|
abstract void |
change(java.lang.String jobId,
java.lang.String changeValue)
Change a coordinator job. |
abstract java.lang.String |
dryrunSubmit(org.apache.hadoop.conf.Configuration conf,
boolean startJob)
|
protected java.lang.String |
getAuthToken()
Return the authentication token. |
abstract CoordinatorJob |
getCoordJob(java.lang.String jobId)
Return the info about a coord job. |
abstract CoordinatorJob |
getCoordJob(java.lang.String jobId,
int start,
int length)
Return the info about a coord job with actions subset. |
abstract java.lang.String |
getDefinition(java.lang.String jobId)
Return the a job definition. |
abstract WorkflowJob |
getJob(java.lang.String jobId)
Return the info about a wf job. |
abstract WorkflowJob |
getJob(java.lang.String jobId,
int start,
int length)
Return the info about a wf job with actions subset. |
abstract java.lang.String |
getJobIdForExternalId(java.lang.String externalId)
Return the workflow Job ID for an external ID. |
java.lang.String |
getUser()
Return the user name. |
abstract void |
kill(java.lang.String jobId)
Kill a job. |
abstract void |
reRun(java.lang.String jobId,
org.apache.hadoop.conf.Configuration conf)
Rerun a job. |
abstract void |
resume(java.lang.String jobId)
Resume a job. |
abstract void |
start(java.lang.String jobId)
Start a job. |
abstract void |
streamLog(java.lang.String jobId,
java.io.Writer writer)
Stream the log of a job. |
abstract java.lang.String |
submitJob(org.apache.hadoop.conf.Configuration conf,
boolean startJob)
Submit a job. |
abstract void |
suspend(java.lang.String jobId)
Suspend a job. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String user
protected java.lang.String authToken
| Constructor Detail |
|---|
public BaseEngine()
| Method Detail |
|---|
public java.lang.String getUser()
protected java.lang.String getAuthToken()
public abstract java.lang.String submitJob(org.apache.hadoop.conf.Configuration conf,
boolean startJob)
throws BaseEngineException
conf - job configuration.startJob - indicates if the job should be started or not.
BaseEngineException - thrown if the job could not be created.
public abstract void start(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job could not be started.
public abstract void resume(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job could not be resumed.
public abstract void suspend(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job could not be suspended.
public abstract void kill(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job could not be killed.
public abstract void change(java.lang.String jobId,
java.lang.String changeValue)
throws BaseEngineException
jobId - job Id.changeValue - change value.
BaseEngineException - thrown if the job could not be changed.
public abstract void reRun(java.lang.String jobId,
org.apache.hadoop.conf.Configuration conf)
throws BaseEngineException
jobId - job Id to rerun.conf - configuration information for the rerun.
BaseEngineException - thrown if the job could not be rerun.
public abstract WorkflowJob getJob(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
DagEngineException - thrown if the job info could not be obtained.
BaseEngineException
public abstract WorkflowJob getJob(java.lang.String jobId,
int start,
int length)
throws BaseEngineException
jobId - job Idstart - starting from this index in the list of actions belonging to the joblength - number of actions to be returned
DagEngineException - thrown if the job info could not be obtained.
BaseEngineException
public abstract CoordinatorJob getCoordJob(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job info could not be obtained.
public abstract CoordinatorJob getCoordJob(java.lang.String jobId,
int start,
int length)
throws BaseEngineException
jobId - job Id.start - starting from this index in the list of actions belonging to the joblength - number of actions to be returned
BaseEngineException - thrown if the job info could not be obtained.
public abstract java.lang.String getDefinition(java.lang.String jobId)
throws BaseEngineException
jobId - job Id.
BaseEngineException - thrown if the job definition could no be obtained.
public abstract void streamLog(java.lang.String jobId,
java.io.Writer writer)
throws java.io.IOException,
BaseEngineException
jobId - job Id.writer - writer to stream the log to.
java.io.IOException - thrown if the log cannot be streamed.
BaseEngineException - thrown if there is error in getting the Workflow/Coordinator Job Information for
jobId.
public abstract java.lang.String getJobIdForExternalId(java.lang.String externalId)
throws BaseEngineException
externalId - external ID provided at job submission time.
null if none.
BaseEngineException - thrown if the lookup could not be done.
public abstract java.lang.String dryrunSubmit(org.apache.hadoop.conf.Configuration conf,
boolean startJob)
throws BaseEngineException
BaseEngineException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||