org.apache.oozie.command
Class KillTransitionXCommand<T>
java.lang.Object
org.apache.oozie.command.XCommand<T>
org.apache.oozie.command.TransitionXCommand<T>
org.apache.oozie.command.KillTransitionXCommand<T>
- All Implemented Interfaces:
- Callable<T>, XCallable<T>
- Direct Known Subclasses:
- BundleKillXCommand, CoordActionsKillXCommand, CoordKillXCommand
public abstract class KillTransitionXCommand<T>
- extends TransitionXCommand<T>
This is transition Base commands for all the jobs.
|
Field Summary |
protected T |
ret
|
|
Method Summary |
protected T |
execute()
Command execution body. |
abstract void |
killChildren()
|
void |
transitToNext()
Transit to the next status based on the result of the Job. |
| Methods inherited from class org.apache.oozie.command.XCommand |
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 |
ret
protected T ret
KillTransitionXCommand
public KillTransitionXCommand(String name,
String type,
int priority)
killChildren
public abstract void killChildren()
throws CommandException
- Throws:
CommandException
transitToNext
public void transitToNext()
- Description copied from class:
TransitionXCommand
- Transit to the next status based on the result of the Job.
- Specified by:
transitToNext in class TransitionXCommand<T>
execute
protected T execute()
throws CommandException
- Description copied from class:
XCommand
- Command execution body.
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.
- Overrides:
execute in class TransitionXCommand<T>
- Returns:
- a return value from the execution of the command, only meaningful if the command is executed
synchronously.
- Throws:
CommandException - thrown if the command execution failed.
Copyright © 2015 Apache Software Foundation. All Rights Reserved.