|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.oozie.command.XCommand<T>
org.apache.oozie.command.TransitionXCommand<String>
org.apache.oozie.command.SubmitTransitionXCommand
public abstract class SubmitTransitionXCommand
Base class for submit transition command. The derived class has to override these following functions:
loadState() : load the job's and/or actions' state submit() : submit the job notifyParent() : update the status to upstream if any
Field Summary |
---|
Fields inherited from class org.apache.oozie.command.TransitionXCommand |
---|
insertList, job, updateList |
Fields inherited from class org.apache.oozie.command.XCommand |
---|
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo |
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.oozie.command.TransitionXCommand |
---|
getJob, notifyParent, performWrites, setJob, updateJob |
Methods inherited from class org.apache.oozie.command.XCommand |
---|
call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getEntityKey, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isLockRequired, isReQueueRequired, loadState, queue, queue, resetUsed, setInterruptMode, verifyPrecondition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 enableMethod Detail |
---|
protected 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
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<String>
CommandException
- thrown if the command execution failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |