| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.BaseEngine
org.apache.oozie.BundleEngine
public class BundleEngine
| Field Summary | 
|---|
| Fields inherited from class org.apache.oozie.BaseEngine | 
|---|
authToken, USE_XCOMMAND, user | 
| Constructor Summary | |
|---|---|
BundleEngine()
Create a system Bundle engine, with no user and no group.  | 
|
BundleEngine(String user,
                         String authToken)
Create a Bundle engine to perform operations on behave of a user.  | 
|
| Method Summary | |
|---|---|
 void | 
change(String jobId,
             String changeValue)
Change a coordinator job.  | 
 String | 
dryrunSubmit(org.apache.hadoop.conf.Configuration conf,
                         boolean startJob)
 | 
 BundleJobBean | 
getBundleJob(String jobId)
 | 
 BundleJobInfo | 
getBundleJobs(String filterStr,
                           int start,
                           int len)
Get bundle jobs  | 
 org.apache.oozie.client.CoordinatorJob | 
getCoordJob(String jobId)
Return the info about a coord job.  | 
 org.apache.oozie.client.CoordinatorJob | 
getCoordJob(String jobId,
                       int start,
                       int length)
Return the info about a coord job with actions subset.  | 
 String | 
getDefinition(String jobId)
Return the a job definition.  | 
 org.apache.oozie.client.WorkflowJob | 
getJob(String jobId)
Return the info about a wf job.  | 
 org.apache.oozie.client.WorkflowJob | 
getJob(String jobId,
             int start,
             int length)
Return the info about a wf job with actions subset.  | 
 String | 
getJobIdForExternalId(String externalId)
Return the workflow Job ID for an external ID.  | 
 void | 
kill(String jobId)
Kill a job.  | 
 void | 
reRun(String jobId,
           org.apache.hadoop.conf.Configuration conf)
Deprecated.  | 
 void | 
reRun(String jobId,
           String coordScope,
           String dateScope,
           boolean refresh,
           boolean noCleanup)
Rerun Bundle actions for given rerunType  | 
 void | 
resume(String jobId)
Resume a job.  | 
 void | 
start(String jobId)
Start a job.  | 
 void | 
streamLog(String jobId,
                   Writer writer)
Stream the log of a job.  | 
 String | 
submitJob(org.apache.hadoop.conf.Configuration conf,
                   boolean startJob)
Submit a job.  | 
 void | 
suspend(String jobId)
Suspend a job.  | 
| Methods inherited from class org.apache.oozie.BaseEngine | 
|---|
getAuthToken, getUser | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public BundleEngine()
public BundleEngine(String user,
                    String authToken)
user - user name.authToken - the authentication token.| Method Detail | 
|---|
public void change(String jobId,
                   String changeValue)
            throws BundleEngineException
BaseEngine
change in class BaseEnginejobId - job Id.changeValue - change value.
BundleEngineException
public String dryrunSubmit(org.apache.hadoop.conf.Configuration conf,
                           boolean startJob)
                    throws BundleEngineException
dryrunSubmit in class BaseEngineBundleEngineException
public org.apache.oozie.client.CoordinatorJob getCoordJob(String jobId)
                                                   throws BundleEngineException
BaseEngine
getCoordJob in class BaseEnginejobId - job Id.
BundleEngineException
public BundleJobBean getBundleJob(String jobId)
                           throws BundleEngineException
BundleEngineException
public org.apache.oozie.client.CoordinatorJob getCoordJob(String jobId,
                                                          int start,
                                                          int length)
                                                   throws BundleEngineException
BaseEngine
getCoordJob in class BaseEnginejobId - job Id.start - starting from this index in the list of actions belonging to the joblength - number of actions to be returned
BundleEngineException
public String getDefinition(String jobId)
                     throws BundleEngineException
BaseEngine
getDefinition in class BaseEnginejobId - job Id.
BundleEngineException
public org.apache.oozie.client.WorkflowJob getJob(String jobId)
                                           throws BundleEngineException
BaseEngine
getJob in class BaseEnginejobId - job Id.
BundleEngineException
public org.apache.oozie.client.WorkflowJob getJob(String jobId,
                                                  int start,
                                                  int length)
                                           throws BundleEngineException
BaseEngine
getJob in class BaseEnginejobId - job Idstart - starting from this index in the list of actions belonging to the joblength - number of actions to be returned
BundleEngineException
public String getJobIdForExternalId(String externalId)
                             throws BundleEngineException
BaseEngine
getJobIdForExternalId in class BaseEngineexternalId - external ID provided at job submission time.
null if none.
BundleEngineException
public void kill(String jobId)
          throws BundleEngineException
BaseEngine
kill in class BaseEnginejobId - job Id.
BundleEngineException
@Deprecated
public void reRun(String jobId,
                             org.apache.hadoop.conf.Configuration conf)
           throws BundleEngineException
BaseEngine
reRun in class BaseEnginejobId - job Id to rerun.conf - configuration information for the rerun.
BundleEngineException
public void reRun(String jobId,
                  String coordScope,
                  String dateScope,
                  boolean refresh,
                  boolean noCleanup)
           throws BaseEngineException
jobId - bundle job idcoordScope - the rerun scope for coordinator job names separated by ","dateScope - the rerun scope for coordinator nominal times separated by ","refresh - true if user wants to refresh input/outpur dataset urlsnoCleanup - false if user wants to cleanup output events for given rerun actions
BaseEngineException - thrown if failed to rerun
public void resume(String jobId)
            throws BundleEngineException
BaseEngine
resume in class BaseEnginejobId - job Id.
BundleEngineException
public void start(String jobId)
           throws BundleEngineException
BaseEngine
start in class BaseEnginejobId - job Id.
BundleEngineException
public void streamLog(String jobId,
                      Writer writer)
               throws IOException,
                      BundleEngineException
BaseEngine
streamLog in class BaseEnginejobId - job Id.writer - writer to stream the log to.
IOException - thrown if the log cannot be streamed.
BundleEngineException
public String submitJob(org.apache.hadoop.conf.Configuration conf,
                        boolean startJob)
                 throws BundleEngineException
BaseEngine
submitJob in class BaseEngineconf - job configuration.startJob - indicates if the job should be started or not.
BundleEngineException
public void suspend(String jobId)
             throws BundleEngineException
BaseEngine
suspend in class BaseEnginejobId - job Id.
BundleEngineException
public BundleJobInfo getBundleJobs(String filterStr,
                                   int start,
                                   int len)
                            throws BundleEngineException
filterStr - the filter stringstart - start location for paginglen - total length to get
BundleEngineException - thrown if failed to get bundle job info
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||