public abstract class UnpauseTransitionXCommand extends TransitionXCommand<Void>
updateJob() : update job status and attributes unpauseChildren() : submit or queue commands to unpause children notifyParent() : update the status to upstream if any
insertList, job, updateList
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG
Constructor and Description |
---|
UnpauseTransitionXCommand(String name,
String type,
int priority)
The constructor for abstract class
UnpauseTransitionXCommand |
Modifier and Type | Method and Description |
---|---|
protected Void |
execute()
Command execution body.
|
void |
transitToNext()
Transit to the next status based on the result of the Job.
|
abstract void |
unpauseChildren()
Unpause actions associated with the job
|
generateEvents, getJob, notifyParent, performWrites, setJob, updateJob
call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed, setInterruptMode, setLogInfo, toString, verifyPrecondition
public UnpauseTransitionXCommand(String name, String type, int priority)
UnpauseTransitionXCommand
name
- the command nametype
- the command typepriority
- the command prioritypublic abstract void unpauseChildren() throws CommandException
CommandException
- thrown if failed to unpause actionspublic final void transitToNext() throws CommandException
TransitionXCommand
transitToNext
in class TransitionXCommand<Void>
CommandException
protected Void execute() throws CommandException
XCommand
This method will be invoked after the {link #loadState} and {link #verifyPrecondition} methods.
If the command requires locking, this method will be invoked ONLY if the lock has been acquired.
execute
in class TransitionXCommand<Void>
CommandException
- thrown if the command execution failed.Copyright © 2018 Apache Software Foundation. All rights reserved.