public class CoordRerunXCommand extends RerunTransitionXCommand<CoordinatorActionInfo>
RestConstants.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| Modifier and Type | Field and Description |
|---|---|
protected boolean |
prevPending |
jobId, prevStatus, retinsertList, job, updateListDEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo| Constructor and Description |
|---|
CoordRerunXCommand(String jobId,
String rerunType,
String scope,
boolean refresh,
boolean noCleanup)
The constructor for class
CoordRerunXCommand |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
performWrites()
This will be used to perform atomically all the writes within this command.
|
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.
|
execute, getPrevStatusgenerateEvents, setJobcall, call, executeInterrupts, getCreatedTime, getInstrumentation, getKey, getLockTimeOut, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, toStringprotected boolean prevPending
public CoordRerunXCommand(String jobId, String rerunType, String scope, boolean refresh, boolean noCleanup)
CoordRerunXCommandjobId - 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 actionspublic String getEntityKey()
XCommandgetEntityKey in interface XCallable<CoordinatorActionInfo>getEntityKey in class XCommand<CoordinatorActionInfo>protected boolean isLockRequired()
XCommandisLockRequired in class XCommand<CoordinatorActionInfo>true/falseprotected void loadState() throws CommandException
XCommandloadState in class XCommand<CoordinatorActionInfo>CommandExceptionprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommandverifyPrecondition in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if the precondition is not met.PreconditionExceptionprotected void eagerLoadState() throws CommandException
XCommandeagerLoadState in class RerunTransitionXCommand<CoordinatorActionInfo>CommandExceptionprotected void eagerVerifyPrecondition() throws CommandException, PreconditionException
XCommandeagerVerifyPrecondition in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if the precondition is not met.PreconditionExceptionpublic void rerunChildren() throws CommandException
RerunTransitionXCommandrerunChildren in class RerunTransitionXCommand<CoordinatorActionInfo>CommandException - thrown if failed to rerun actionspublic org.apache.oozie.client.Job getJob()
TransitionXCommandgetJob in class TransitionXCommand<CoordinatorActionInfo>public void notifyParent() throws CommandException
TransitionXCommandnotifyParent in class TransitionXCommand<CoordinatorActionInfo>CommandExceptionpublic void updateJob()
TransitionXCommandupdateJob in class TransitionXCommand<CoordinatorActionInfo>public void performWrites() throws CommandException
TransitionXCommandperformWrites in class TransitionXCommand<CoordinatorActionInfo>CommandExceptionpublic XLog getLog()
XCommandgetLog in class XCommand<CoordinatorActionInfo>public final void transitToNext()
TransitionXCommandtransitToNext in class RerunTransitionXCommand<CoordinatorActionInfo>Copyright © 2014 Apache Software Foundation. All Rights Reserved.