org.apache.oozie.command.wf
Class WorkflowXCommand<T>

java.lang.Object
  extended by org.apache.oozie.command.XCommand<T>
      extended by org.apache.oozie.command.wf.WorkflowXCommand<T>
Type Parameters:
T -
All Implemented Interfaces:
Callable<T>, XCallable<T>
Direct Known Subclasses:
ActionXCommand, CompletedActionXCommand, DefinitionXCommand, ExternalIdXCommand, JobsXCommand, JobXCommand, KillXCommand, NotificationXCommand, ReRunXCommand, ResumeXCommand, SignalXCommand, SubmitHttpXCommand, SubmitXCommand, SuspendXCommand, WfEndXCommand, WorkflowActionInfoXCommand

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

Abstract coordinator command class derived from XCommand


Field Summary
protected static String INSTR_FAILED_JOBS_COUNTER_NAME
           
protected static String INSTR_KILLED_JOBS_COUNTER_NAME
           
protected static String INSTR_SUCCEEDED_JOBS_COUNTER_NAME
           
 
Fields inherited from class org.apache.oozie.command.XCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo
 
Constructor Summary
WorkflowXCommand(String name, String type, int priority)
          Base class constructor for workflow commands.
WorkflowXCommand(String name, String type, int priority, boolean dryrun)
          Base class constructor for workflow commands.
 
Method Summary
protected  void generateEvent(WorkflowActionBean wfAction, String wfUser)
           
protected static void generateEvent(WorkflowJobBean wfJob)
           
protected static void generateEvent(WorkflowJobBean wfJob, String errorCode, String errorMsg)
           
protected  void updateParentIfNecessary(WorkflowJobBean wfjob)
           
protected  void updateParentIfNecessary(WorkflowJobBean wfjob, int maxRetries)
           
 
Methods inherited from class org.apache.oozie.command.XCommand
call, call, eagerLoadState, eagerVerifyPrecondition, execute, 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

INSTR_SUCCEEDED_JOBS_COUNTER_NAME

protected static final String INSTR_SUCCEEDED_JOBS_COUNTER_NAME
See Also:
Constant Field Values

INSTR_KILLED_JOBS_COUNTER_NAME

protected static final String INSTR_KILLED_JOBS_COUNTER_NAME
See Also:
Constant Field Values

INSTR_FAILED_JOBS_COUNTER_NAME

protected static final String INSTR_FAILED_JOBS_COUNTER_NAME
See Also:
Constant Field Values
Constructor Detail

WorkflowXCommand

public WorkflowXCommand(String name,
                        String type,
                        int priority)
Base class constructor for workflow commands.

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

WorkflowXCommand

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

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

generateEvent

protected static void generateEvent(WorkflowJobBean wfJob,
                                    String errorCode,
                                    String errorMsg)

generateEvent

protected static void generateEvent(WorkflowJobBean wfJob)

generateEvent

protected void generateEvent(WorkflowActionBean wfAction,
                             String wfUser)

updateParentIfNecessary

protected void updateParentIfNecessary(WorkflowJobBean wfjob,
                                       int maxRetries)
                                throws CommandException
Throws:
CommandException

updateParentIfNecessary

protected void updateParentIfNecessary(WorkflowJobBean wfjob)
                                throws CommandException
Throws:
CommandException


Copyright © 2015 Apache Software Foundation. All Rights Reserved.