org.apache.oozie.command.coord
Class CoordinatorXCommand<T>

java.lang.Object
  extended by org.apache.oozie.command.XCommand<T>
      extended by org.apache.oozie.command.coord.CoordinatorXCommand<T>
All Implemented Interfaces:
Callable<T>, XCallable<T>
Direct Known Subclasses:
CoordActionCheckXCommand, CoordActionInfoXCommand, CoordActionInputCheckXCommand, CoordActionNotificationXCommand, CoordActionReadyXCommand, CoordActionStartXCommand, CoordActionTimeOutXCommand, CoordActionUpdateXCommand, CoordChangeXCommand, CoordJobsXCommand, CoordJobXCommand, CoordPushDependencyCheckXCommand

public abstract class CoordinatorXCommand<T>
extends XCommand<T>

Abstract coordinator command class derived from XCommand


Field Summary
 
Fields inherited from class org.apache.oozie.command.XCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo
 
Constructor Summary
CoordinatorXCommand(String name, String type, int priority)
          Base class constructor for coordinator commands.
CoordinatorXCommand(String name, String type, int priority, boolean dryrun)
          Base class constructor for coordinator commands.
 
Method Summary
static void generateEvent(CoordinatorActionBean coordAction, String user, String appName, Date startTime)
           
protected  void generateEvent(CoordinatorJobBean coordJob)
           
 
Methods inherited from class org.apache.oozie.command.XCommand
call, eagerLoadState, eagerVerifyPrecondition, execute, 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

CoordinatorXCommand

public CoordinatorXCommand(String name,
                           String type,
                           int priority)
Base class constructor for coordinator commands.

Parameters:
name - command name
type - command type
priority - command priority

CoordinatorXCommand

public CoordinatorXCommand(String name,
                           String type,
                           int priority,
                           boolean dryrun)
Base class constructor for coordinator commands.

Parameters:
name - command name
type - command type
priority - command priority
dryrun - true if rerun is enabled for command
Method Detail

generateEvent

public static void generateEvent(CoordinatorActionBean coordAction,
                                 String user,
                                 String appName,
                                 Date startTime)

generateEvent

protected void generateEvent(CoordinatorJobBean coordJob)


Copyright © 2013 Apache Software Foundation. All Rights Reserved.