| 
||||||||||
| 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<T>
T - public abstract class TransitionXCommand<T>
This is the base commands for all the jobs related commands . This will drive the statuses for all the jobs and all the jobs will follow the same state machine.
| Field Summary | |
|---|---|
protected  org.apache.oozie.client.Job | 
job
 | 
| Fields inherited from class org.apache.oozie.command.XCommand | 
|---|
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo | 
| Constructor Summary | |
|---|---|
TransitionXCommand(String name,
                                     String type,
                                     int priority)
 | 
|
TransitionXCommand(String name,
                                     String type,
                                     int priority,
                                     boolean dryrun)
 | 
|
| Method Summary | |
|---|---|
protected  T | 
execute()
Command execution body.  | 
 org.apache.oozie.client.Job | 
getJob()
Get the Job for the command.  | 
abstract  void | 
notifyParent()
This will be used to notify the parent about the status of that perticular job.  | 
 void | 
setJob(org.apache.oozie.client.Job job)
Set the Job for the command.  | 
abstract  void | 
transitToNext()
Transit to the next status based on the result of the Job.  | 
abstract  void | 
updateJob()
Update the parent job.  | 
| Methods inherited from class org.apache.oozie.command.XCommand | 
|---|
call, eagerLoadState, eagerVerifyPrecondition, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed, verifyPrecondition | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected org.apache.oozie.client.Job job
| Constructor Detail | 
|---|
public TransitionXCommand(String name,
                          String type,
                          int priority)
public TransitionXCommand(String name,
                          String type,
                          int priority,
                          boolean dryrun)
| Method Detail | 
|---|
public abstract void transitToNext()
                            throws CommandException
CommandException
public abstract void updateJob()
                        throws CommandException
CommandException
public abstract void notifyParent()
                           throws CommandException
CommandException
protected T execute()
             throws CommandException
XCommand
execute in class XCommand<T>CommandException - thrown if the command execution failed.public org.apache.oozie.client.Job getJob()
public void setJob(org.apache.oozie.client.Job job)
job - the job
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||