public class CoordStatusTransitXCommand extends StatusTransitXCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG| Constructor and Description |
|---|
CoordStatusTransitXCommand(String jobId) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.oozie.client.Job.Status |
getBottomUpSuspendedState()
Bottom up look for children to check the parent's status only if materialization is done and all actions are
non-pending.
|
String |
getEntityKey()
Return the entity key for the command.
|
protected org.apache.oozie.client.Job.Status |
getJobStatus()
Gets the job status.
|
protected org.apache.oozie.client.Job.Status |
getPausedState()
Gets the job pause state.
|
protected org.apache.oozie.client.Job.Status |
getRunningState()
Gets the job running state.
|
protected org.apache.oozie.client.Job.Status |
getSuspendedStatus()
Gets the suspended status.
|
protected org.apache.oozie.client.Job.Status |
getTerminalStatus()
Gets the job terminal status.
|
protected boolean |
isPausedState()
Checks if job is in paused state.
|
protected boolean |
isRunningState()
Checks if job is in running state.
|
protected boolean |
isSuspendedState()
Checks if is in suspended state.
|
protected boolean |
isTerminalState()
Checks if job is in terminal state.
|
protected void |
loadState()
Load the necessary state to perform the precondition check and to execute the command.
|
protected void |
updateJobStatus(org.apache.oozie.client.Job.Status coordStatus)
Update job status.
|
protected void |
verifyPrecondition()
Verify the precondition for the command after a lock has been obtain, just before executing the command.
|
execute, getLockTimeOut, isLockRequired, isReQueueRequiredcall, call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getKey, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, queue, queue, resetUsed, setInterruptMode, setLogInfo, toStringpublic CoordStatusTransitXCommand(String jobId)
public String getEntityKey()
XCommandgetEntityKey in interface XCallable<Void>getEntityKey in class XCommand<Void>protected void loadState() throws CommandException
XCommandloadState in class XCommand<Void>CommandExceptionprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommandverifyPrecondition in class XCommand<Void>CommandException - thrown if the precondition is not met.PreconditionExceptionprotected org.apache.oozie.client.Job.Status getJobStatus() throws CommandException
StatusTransitXCommandgetJobStatus in class StatusTransitXCommandCommandException - the command exceptionprotected boolean isTerminalState()
StatusTransitXCommandisTerminalState in class StatusTransitXCommandprotected org.apache.oozie.client.Job.Status getTerminalStatus()
StatusTransitXCommandgetTerminalStatus in class StatusTransitXCommandprotected boolean isPausedState()
StatusTransitXCommandisPausedState in class StatusTransitXCommandprotected org.apache.oozie.client.Job.Status getPausedState()
StatusTransitXCommandgetPausedState in class StatusTransitXCommandprotected boolean isSuspendedState()
StatusTransitXCommandisSuspendedState in class StatusTransitXCommandprotected org.apache.oozie.client.Job.Status getSuspendedStatus()
StatusTransitXCommandgetSuspendedStatus in class StatusTransitXCommandprotected boolean isRunningState()
StatusTransitXCommandisRunningState in class StatusTransitXCommandprotected org.apache.oozie.client.Job.Status getRunningState()
StatusTransitXCommandgetRunningState in class StatusTransitXCommandprotected void updateJobStatus(org.apache.oozie.client.Job.Status coordStatus) throws JPAExecutorException, CommandException
StatusTransitXCommandupdateJobStatus in class StatusTransitXCommandcoordStatus - the statusJPAExecutorException - the JPA executor exceptionCommandException - the command exceptionprotected org.apache.oozie.client.Job.Status getBottomUpSuspendedState()
Copyright © 2016 Apache Software Foundation. All Rights Reserved.