org.apache.oozie.command.coord
Class CoordActionStartCommand

java.lang.Object
  extended by org.apache.oozie.command.Command<T,CoordinatorStore>
      extended by org.apache.oozie.command.coord.CoordinatorCommand<java.lang.Void>
          extended by org.apache.oozie.command.coord.CoordActionStartCommand
All Implemented Interfaces:
java.util.concurrent.Callable<java.lang.Void>, XCallable<java.lang.Void>

public class CoordActionStartCommand
extends CoordinatorCommand<java.lang.Void>


Field Summary
static java.lang.String COULD_NOT_START
           
static java.lang.String EL_ERROR
           
static java.lang.String EL_EVAL_ERROR
           
static java.lang.String EXEC_DATA_MISSING
           
static java.lang.String START_DATA_MISSING
           
 
Fields inherited from class org.apache.oozie.command.Command
dryrun, instrumentation, LOCK_FAILURE_REQUEUE_INTERVAL, type
 
Constructor Summary
CoordActionStartCommand(java.lang.String id, java.lang.String user, java.lang.String token)
           
 
Method Summary
protected  java.lang.Void call(CoordinatorStore store)
          DagCallable subclasses must implement this method to perform their task.
protected  java.lang.Void execute(CoordinatorStore store)
           
 
Methods inherited from class org.apache.oozie.command.coord.CoordinatorCommand
getStoreClass
 
Methods inherited from class org.apache.oozie.command.Command
call, getCreatedTime, getInstrumentation, getName, getPriority, getType, incrCommandCounter, incrJobCounter, incrJobCounter, lock, logQueueCallableFalse, queueCallable, queueCallable, queueCallable, queueCallableForException, resetLogInfoAction, resetLogInfoWorkflow, setLogInfo, setLogInfo, setLogInfo, setLogInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EL_ERROR

public static final java.lang.String EL_ERROR
See Also:
Constant Field Values

EL_EVAL_ERROR

public static final java.lang.String EL_EVAL_ERROR
See Also:
Constant Field Values

COULD_NOT_START

public static final java.lang.String COULD_NOT_START
See Also:
Constant Field Values

START_DATA_MISSING

public static final java.lang.String START_DATA_MISSING
See Also:
Constant Field Values

EXEC_DATA_MISSING

public static final java.lang.String EXEC_DATA_MISSING
See Also:
Constant Field Values
Constructor Detail

CoordActionStartCommand

public CoordActionStartCommand(java.lang.String id,
                               java.lang.String user,
                               java.lang.String token)
Method Detail

call

protected java.lang.Void call(CoordinatorStore store)
                       throws StoreException,
                              CommandException
Description copied from class: Command
DagCallable subclasses must implement this method to perform their task.

The workflow store works in transactional mode. The transaction is committed only if this method ends successfully. Otherwise the transaction is rolledback.

Specified by:
call in class Command<java.lang.Void,CoordinatorStore>
Parameters:
store - the workflow store instance for the callable, null if the callable does not use a store.
Returns:
the return value of the callable.
Throws:
StoreException - thrown if the workflow store could not perform an operation.
CommandException - thrown if the command could not perform its operation.

execute

protected java.lang.Void execute(CoordinatorStore store)
                          throws StoreException,
                                 CommandException
Overrides:
execute in class Command<java.lang.Void,CoordinatorStore>
Throws:
StoreException
CommandException


Copyright © 2010 Yahoo. All Rights Reserved.