|
||||||||||
| 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<CoordinatorActionInfo>
org.apache.oozie.command.coord.CoordRerunXCommand
public class CoordRerunXCommand
Rerun coordinator actions by a list of dates or ids. User can specify if refresh or noCleanup.
The "rerunType" can be set asRestConstants.JOB_COORD_RERUN_DATE or
RestConstants.JOB_COORD_RERUN_ACTION.
The "refresh" is used to indicate if user wants to refresh an action's input and output events.
The "noCleanup" is used to indicate if user wants to cleanup output events for given rerun actions
| Field Summary | |
|---|---|
protected boolean |
prevPending
|
| Fields inherited from class org.apache.oozie.command.RerunTransitionXCommand |
|---|
jobId, prevStatus, 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 | |
|---|---|
CoordRerunXCommand(String jobId,
String rerunType,
String scope,
boolean refresh,
boolean noCleanup)
The constructor for class CoordRerunXCommand |
|
| Method Summary | |
|---|---|
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. |
XLog |
getLog()
Get XLog log |
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. |
void |
notifyParent()
This will be used to notify the parent about the status of that perticular job. |
void |
rerunChildren()
Rerun actions associated with the job |
void |
transitToNext()
Transit to the next status based on the result of 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.RerunTransitionXCommand |
|---|
eagerLoadState, execute, getPrevStatus |
| Methods inherited from class org.apache.oozie.command.TransitionXCommand |
|---|
setJob |
| Methods inherited from class org.apache.oozie.command.XCommand |
|---|
call, getCreatedTime, getInstrumentation, getKey, getLockTimeOut, 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 |
|---|
protected boolean prevPending
| Constructor Detail |
|---|
public CoordRerunXCommand(String jobId,
String rerunType,
String scope,
boolean refresh,
boolean noCleanup)
CoordRerunXCommand
jobId - the job idrerunType - rerun type RestConstants.JOB_COORD_RERUN_DATE or RestConstants.JOB_COORD_RERUN_ACTIONscope - the rerun scope for given rerunType separated by ","refresh - true if user wants to refresh input/output dataset urlsnoCleanup - false if user wants to cleanup output events for given rerun actions| Method Detail |
|---|
protected String getEntityKey()
XCommand
getEntityKey in class XCommand<CoordinatorActionInfo>protected boolean isLockRequired()
XCommand
isLockRequired in class XCommand<CoordinatorActionInfo>true/false
protected void loadState()
throws CommandException
XCommand
loadState in class XCommand<CoordinatorActionInfo>CommandException
protected void verifyPrecondition()
throws CommandException,
PreconditionException
XCommand
verifyPrecondition in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if the precondition is not met.
PreconditionException
protected void eagerVerifyPrecondition()
throws CommandException,
PreconditionException
XCommand
eagerVerifyPrecondition in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if the precondition is not met.
PreconditionException
public void rerunChildren()
throws CommandException
RerunTransitionXCommand
rerunChildren in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if failed to rerun actionspublic org.apache.oozie.client.Job getJob()
TransitionXCommand
getJob in class TransitionXCommand<CoordinatorActionInfo>
public void notifyParent()
throws CommandException
TransitionXCommand
notifyParent in class TransitionXCommand<CoordinatorActionInfo>CommandException
public void updateJob()
throws CommandException
TransitionXCommand
updateJob in class TransitionXCommand<CoordinatorActionInfo>CommandExceptionpublic XLog getLog()
XCommand
getLog in class XCommand<CoordinatorActionInfo>public final void transitToNext()
TransitionXCommand
transitToNext in class RerunTransitionXCommand<CoordinatorActionInfo>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||