org.apache.oozie.command
Class IgnoreTransitionXCommand<T>

java.lang.Object
  extended by org.apache.oozie.command.XCommand<T>
      extended by org.apache.oozie.command.TransitionXCommand<T>
          extended by org.apache.oozie.command.IgnoreTransitionXCommand<T>
All Implemented Interfaces:
Callable<T>, XCallable<T>
Direct Known Subclasses:
CoordActionsIgnoreXCommand

public abstract class IgnoreTransitionXCommand<T>
extends TransitionXCommand<T>


Field Summary
protected  T ret
           
 
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, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo
 
Constructor Summary
IgnoreTransitionXCommand(String name, String type, int priority)
           
 
Method Summary
protected  T execute()
          Command execution body.
abstract  void ignoreChildren()
           
 void notifyParent()
          This will be used to notify the parent about the status of that perticular job.
 void transitToNext()
          Transit to the next status based on the result of the Job.
 void updateJob()
          Update the parent job.
 
Methods inherited from class org.apache.oozie.command.TransitionXCommand
generateEvents, getJob, performWrites, setJob
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ret

protected T ret
Constructor Detail

IgnoreTransitionXCommand

public IgnoreTransitionXCommand(String name,
                                String type,
                                int priority)
Method Detail

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.

ignoreChildren

public abstract void ignoreChildren()
                             throws CommandException
Throws:
CommandException

transitToNext

public void transitToNext()
                   throws CommandException
Description copied from class: TransitionXCommand
Transit to the next status based on the result of the Job.

Specified by:
transitToNext in class TransitionXCommand<T>
Throws:
CommandException

notifyParent

public void notifyParent()
Description copied from class: TransitionXCommand
This will be used to notify the parent about the status of that perticular job.

Specified by:
notifyParent in class TransitionXCommand<T>

updateJob

public void updateJob()
Description copied from class: TransitionXCommand
Update the parent job.

Specified by:
updateJob in class TransitionXCommand<T>


Copyright © 2015 Apache Software Foundation. All Rights Reserved.