|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.oozie.command.XCommand<T> org.apache.oozie.command.TransitionXCommand<Void> org.apache.oozie.command.MaterializeTransitionXCommand org.apache.oozie.command.coord.CoordMaterializeTransitionXCommand
public class CoordMaterializeTransitionXCommand
Materialize actions for specified start and end time for coordinator job.
Field Summary | |
---|---|
static String |
CONF_DEFAULT_MAX_TIMEOUT
Default MAX timeout in minutes, after which coordinator input check will timeout |
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, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo |
Constructor Summary | |
---|---|
CoordMaterializeTransitionXCommand(String jobId,
int materializationWindow)
The constructor for class CoordMaterializeTransitionXCommand |
Method Summary | |
---|---|
protected void |
calcMatdTime()
Calculate startMatdTime and endMatdTime from job's start time if next materialized time is null |
String |
getEntityKey()
Return the entity key for the command. |
String |
getKey()
Get command key |
protected boolean |
isLockRequired()
Indicate if the the command requires locking. |
protected void |
loadState()
Load the necessary state to perform the precondition check and to execute the command. |
protected void |
materialize()
Materialize the actions for current job |
protected String |
materializeActions(boolean dryrun)
Create action instances starting from "startMatdTime" to "endMatdTime" and store them into coord action table. |
void |
notifyParent()
This will be used to notify the parent about the status of that perticular job. |
void |
performWrites()
This will be used to perform atomically all the writes within this command. |
void |
transitToNext()
Transit to the next status based on the result of the Job. |
void |
updateJob()
Update the parent job. |
protected void |
verifyPrecondition()
Verify the precondition for the command after a lock has been obtain, just before executing the command. |
Methods inherited from class org.apache.oozie.command.MaterializeTransitionXCommand |
---|
execute |
Methods inherited from class org.apache.oozie.command.TransitionXCommand |
---|
getJob, setJob |
Methods inherited from class org.apache.oozie.command.XCommand |
---|
call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONF_DEFAULT_MAX_TIMEOUT
Constructor Detail |
---|
public CoordMaterializeTransitionXCommand(String jobId, int materializationWindow)
CoordMaterializeTransitionXCommand
jobId
- coordinator job idmaterializationWindow
- materialization window to calculate end timeMethod Detail |
---|
public void transitToNext() throws CommandException
TransitionXCommand
transitToNext
in class MaterializeTransitionXCommand
CommandException
public void updateJob() throws CommandException
TransitionXCommand
updateJob
in class TransitionXCommand<Void>
CommandException
public void performWrites() throws CommandException
TransitionXCommand
performWrites
in class TransitionXCommand<Void>
CommandException
public String getEntityKey()
XCommand
getEntityKey
in interface XCallable<Void>
getEntityKey
in class XCommand<Void>
protected boolean isLockRequired()
XCommand
isLockRequired
in class XCommand<Void>
true/false
protected void loadState() throws CommandException
XCommand
loadState
in class XCommand<Void>
CommandException
protected void calcMatdTime() throws CommandException
CommandException
- thrown if failed to calculate startMatdTime and endMatdTimeprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommand
verifyPrecondition
in class XCommand<Void>
CommandException
- thrown if the precondition is not met.
PreconditionException
protected void materialize() throws CommandException
MaterializeTransitionXCommand
materialize
in class MaterializeTransitionXCommand
CommandException
- thrown if failed to materializeprotected String materializeActions(boolean dryrun) throws Exception
dryrun
- if this is a dry run
Exception
- thrown if failed to materialize actionspublic String getKey()
XCommand
getKey
in interface XCallable<Void>
getKey
in class XCommand<Void>
public void notifyParent() throws CommandException
TransitionXCommand
notifyParent
in class TransitionXCommand<Void>
CommandException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |