public abstract class MaterializeTransitionXCommand extends TransitionXCommand<Void>
loadState() : load the job's and/or actions' state updateJob() : update job status and attributes StartChildren() : submit or queue commands to start children notifyParent() : update the status to upstream if any
insertList, job, updateListDEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG| Constructor and Description |
|---|
MaterializeTransitionXCommand(String name,
String type,
int priority)
The constructor for abstract class
MaterializeTransitionXCommand |
MaterializeTransitionXCommand(String name,
String type,
int priority,
boolean dryrun)
The constructor for abstract class
MaterializeTransitionXCommand |
| Modifier and Type | Method and Description |
|---|---|
protected Void |
execute()
Command execution body.
|
protected abstract void |
materialize()
Materialize the actions for current job
|
void |
transitToNext()
Transit to the next status based on the result of the Job.
|
generateEvents, getJob, notifyParent, performWrites, setJob, updateJobcall, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed, setInterruptMode, setLogInfo, toString, verifyPreconditionpublic MaterializeTransitionXCommand(String name, String type, int priority)
MaterializeTransitionXCommandname - the command nametype - the command typepriority - the command prioritypublic MaterializeTransitionXCommand(String name, String type, int priority, boolean dryrun)
MaterializeTransitionXCommandname - the command nametype - the command typepriority - the command prioritydryrun - true if dryrun is enablepublic void transitToNext() throws CommandException
TransitionXCommandtransitToNext in class TransitionXCommand<Void>CommandExceptionprotected abstract void materialize() throws CommandException
CommandException - thrown if failed to materializeprotected Void execute() throws CommandException
XCommandThis 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.