| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.command.XCommand<T>
org.apache.oozie.command.TransitionXCommand<String>
org.apache.oozie.command.SubmitTransitionXCommand
org.apache.oozie.command.bundle.BundleSubmitXCommand
public class BundleSubmitXCommand
This Command will submit the bundle.
| Field Summary | |
|---|---|
static String | 
BUNDLE_XML_FILE
 | 
static String | 
CONFIG_DEFAULT
 | 
| Fields inherited from class org.apache.oozie.command.TransitionXCommand | 
|---|
job | 
| Fields inherited from class org.apache.oozie.command.XCommand | 
|---|
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo | 
| Constructor Summary | |
|---|---|
BundleSubmitXCommand(boolean dryrun,
                                         org.apache.hadoop.conf.Configuration conf,
                                         String authToken)
Constructor to create the bundle submit command.  | 
|
BundleSubmitXCommand(org.apache.hadoop.conf.Configuration conf,
                                         String authToken)
Constructor to create the bundle submit command.  | 
|
| Method Summary | |
|---|---|
 ELEvaluator | 
createEvaluator(org.apache.hadoop.conf.Configuration conf)
Create ELEvaluator  | 
protected  void | 
eagerLoadState()
Load the necessary state to perform an eager precondition check.  | 
protected  void | 
eagerVerifyPrecondition()
Verify the precondition for the command before obtaining a lock.  | 
protected  String | 
getEntityKey()
Return the entity key for the command.  | 
 org.apache.oozie.client.Job | 
getJob()
Get the Job for the command.  | 
protected  boolean | 
isLockRequired()
Indicate if the the command requires locking.  | 
protected  void | 
loadState()
Load the necessary state to perform the precondition check and to execute the command.  | 
protected  void | 
mergeDefaultConfig()
Merge default configuration with user-defined configuration.  | 
 void | 
notifyParent()
This will be used to notify the parent about the status of that perticular job.  | 
protected  String | 
readDefinition(String appPath)
Read bundle definition.  | 
protected  String | 
submit()
Submit the job  | 
 void | 
updateJob()
Update the parent job.  | 
protected  void | 
verifyPrecondition()
Verify the precondition for the command after a lock has been obtain, just before executing the command.  | 
| Methods inherited from class org.apache.oozie.command.SubmitTransitionXCommand | 
|---|
execute, transitToNext | 
| Methods inherited from class org.apache.oozie.command.TransitionXCommand | 
|---|
setJob | 
| Methods inherited from class org.apache.oozie.command.XCommand | 
|---|
call, getCreatedTime, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, isReQueueRequired, queue, queue, resetUsed | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CONFIG_DEFAULT
public static final String BUNDLE_XML_FILE
| Constructor Detail | 
|---|
public BundleSubmitXCommand(org.apache.hadoop.conf.Configuration conf,
                            String authToken)
conf - configuration for bundle jobauthToken - to be used for authentication
public BundleSubmitXCommand(boolean dryrun,
                            org.apache.hadoop.conf.Configuration conf,
                            String authToken)
dryrun - true if dryrun is enableconf - configuration for bundle jobauthToken - to be used for authentication| Method Detail | 
|---|
protected String submit()
                 throws CommandException
SubmitTransitionXCommand
submit in class SubmitTransitionXCommandCommandException - thrown if unable to submit
public void notifyParent()
                  throws CommandException
TransitionXCommand
notifyParent in class TransitionXCommand<String>CommandExceptionprotected String getEntityKey()
XCommand
getEntityKey in class XCommand<String>protected boolean isLockRequired()
XCommand
isLockRequired in class XCommand<String>true/false
protected void loadState()
                  throws CommandException
XCommand
loadState in class XCommand<String>CommandException
protected void verifyPrecondition()
                           throws CommandException,
                                  PreconditionException
XCommand
verifyPrecondition in class XCommand<String>CommandException - thrown if the precondition is not met.
PreconditionException
protected void eagerLoadState()
                       throws CommandException
XCommand
eagerLoadState in class XCommand<String>CommandException
protected void eagerVerifyPrecondition()
                                throws CommandException,
                                       PreconditionException
XCommand
eagerVerifyPrecondition in class XCommand<String>CommandException - thrown if the precondition is not met.
PreconditionException
protected void mergeDefaultConfig()
                           throws CommandException
CommandException - thrown if failed to merge configuration
protected String readDefinition(String appPath)
                         throws BundleJobException
appPath - application path.user - user name.group - group name.autToken - authentication token.
BundleJobException - thrown if the definition could not be read.public org.apache.oozie.client.Job getJob()
TransitionXCommand
getJob in class TransitionXCommand<String>
public ELEvaluator createEvaluator(org.apache.hadoop.conf.Configuration conf)
                            throws BundleJobException
conf - job configuration
BundleJobException - thrown if failed to create evaluator
public void updateJob()
               throws CommandException
TransitionXCommand
updateJob in class TransitionXCommand<String>CommandException
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||