public abstract class SubmitTransitionXCommand extends TransitionXCommand<String>
insertList, job, updateList
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo
Constructor and Description |
---|
SubmitTransitionXCommand(String name,
String type,
int priority)
The constructor for abstract class
SubmitTransitionXCommand |
SubmitTransitionXCommand(String name,
String type,
int priority,
boolean dryrun)
The constructor for abstract class
SubmitTransitionXCommand |
Modifier and Type | Method and Description |
---|---|
protected String |
execute()
Command execution body.
|
protected abstract String |
submit()
Submit the job
|
void |
transitToNext()
Transit to the next status based on the result of the Job.
|
generateEvents, getJob, notifyParent, performWrites, setJob, updateJob
call, call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed, setInterruptMode, toString, verifyPrecondition
public SubmitTransitionXCommand(String name, String type, int priority)
SubmitTransitionXCommand
name
- the command nametype
- the command typepriority
- the command prioritypublic SubmitTransitionXCommand(String name, String type, int priority, boolean dryrun)
SubmitTransitionXCommand
name
- the command nametype
- the command typepriority
- the command prioritydryrun
- true if dryrun is enableprotected abstract String submit() throws CommandException
CommandException
- thrown if unable to submitpublic void transitToNext()
TransitionXCommand
transitToNext
in class TransitionXCommand<String>
protected String execute() throws CommandException
XCommand
execute
in class TransitionXCommand<String>
CommandException
- thrown if the command execution failed.Copyright © 2014 Apache Software Foundation. All Rights Reserved.