| 
||||||||||
| 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>
org.apache.oozie.command.RerunTransitionXCommand<T>
T - public abstract class RerunTransitionXCommand<T>
Transition command for rerun the job. The derived class has to override these following functions:
updateJob() : update job status and attributes rerunChildren() : submit or queue commands to rerun children notifyParent() : update the status to upstream if any
| Field Summary | |
|---|---|
protected  String | 
jobId
 | 
protected  org.apache.oozie.client.Job.Status | 
prevStatus
 | 
protected  T | 
ret
 | 
| 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 | |
|---|---|
RerunTransitionXCommand(String name,
                                               String type,
                                               int priority)
The constructor for abstract class RerunTransitionXCommand | 
|
RerunTransitionXCommand(String name,
                                               String type,
                                               int priority,
                                               boolean dryrun)
The constructor for abstract class RerunTransitionXCommand | 
|
| Method Summary | |
|---|---|
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  T | 
execute()
Command execution body.  | 
 org.apache.oozie.client.Job.Status | 
getPrevStatus()
This method will return the previous status.  | 
abstract  void | 
rerunChildren()
Rerun actions associated with the job  | 
 void | 
transitToNext()
Transit to the next status based on the result of the 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.TransitionXCommand | 
|---|
getJob, notifyParent, setJob, updateJob | 
| Methods inherited from class org.apache.oozie.command.XCommand | 
|---|
call, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected String jobId
protected T ret
protected org.apache.oozie.client.Job.Status prevStatus
| Constructor Detail | 
|---|
public RerunTransitionXCommand(String name,
                               String type,
                               int priority)
RerunTransitionXCommand
name - the command nametype - the command typepriority - the command priority
public RerunTransitionXCommand(String name,
                               String type,
                               int priority,
                               boolean dryrun)
RerunTransitionXCommand
name - the command nametype - the command typepriority - the command prioritydryrun - true if dryrun is enable| Method Detail | 
|---|
public void transitToNext()
TransitionXCommand
transitToNext in class TransitionXCommand<T>
public abstract void rerunChildren()
                            throws CommandException
CommandException - thrown if failed to rerun actions
protected T execute()
             throws CommandException
XCommand
execute in class TransitionXCommand<T>CommandException - thrown if the command execution failed.
protected void verifyPrecondition()
                           throws CommandException,
                                  PreconditionException
XCommand
verifyPrecondition in class XCommand<T>CommandException - thrown if the precondition is not met.
PreconditionException
protected void eagerLoadState()
                       throws CommandException
XCommand
eagerLoadState in class XCommand<T>CommandException
protected void eagerVerifyPrecondition()
                                throws CommandException,
                                       PreconditionException
XCommand
eagerVerifyPrecondition in class XCommand<T>CommandException - thrown if the precondition is not met.
PreconditionExceptionpublic org.apache.oozie.client.Job.Status getPrevStatus()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||