|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.command.XCommand<T> org.apache.oozie.command.TransitionXCommand<T>
T
- public abstract class TransitionXCommand<T>
This is the base commands for all the jobs related commands . This will drive the statuses for all the jobs and all the jobs will follow the same state machine.
Field Summary | |
---|---|
protected List<JsonBean> |
insertList
|
protected org.apache.oozie.client.Job |
job
|
protected List<JsonBean> |
updateList
|
Fields inherited from class org.apache.oozie.command.XCommand |
---|
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo |
Constructor Summary | |
---|---|
TransitionXCommand(String name,
String type,
int priority)
|
|
TransitionXCommand(String name,
String type,
int priority,
boolean dryrun)
|
Method Summary | |
---|---|
protected T |
execute()
Command execution body. |
void |
generateEvents(CoordinatorJobBean coordJob)
This will be used to generate Job Notification events on status changes |
org.apache.oozie.client.Job |
getJob()
Get the Job for the command. |
abstract void |
notifyParent()
This will be used to notify the parent about the status of that perticular job. |
abstract void |
performWrites()
This will be used to perform atomically all the writes within this command. |
void |
setJob(org.apache.oozie.client.Job job)
Set the Job for the command. |
abstract void |
transitToNext()
Transit to the next status based on the result of the Job. |
abstract void |
updateJob()
Update the parent job. |
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 |
Field Detail |
---|
protected org.apache.oozie.client.Job job
protected List<JsonBean> updateList
protected List<JsonBean> insertList
Constructor Detail |
---|
public TransitionXCommand(String name, String type, int priority)
public TransitionXCommand(String name, String type, int priority, boolean dryrun)
Method Detail |
---|
public abstract void transitToNext() throws CommandException
CommandException
public abstract void updateJob() throws CommandException
CommandException
public abstract void notifyParent() throws CommandException
CommandException
public void generateEvents(CoordinatorJobBean coordJob) throws CommandException
user
- appName
- em
-
CommandException
public abstract void performWrites() throws CommandException
CommandException
protected T execute() throws CommandException
XCommand
execute
in class XCommand<T>
CommandException
- thrown if the command execution failed.public org.apache.oozie.client.Job getJob()
public void setJob(org.apache.oozie.client.Job job)
job
- the job
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |