|
||||||||||
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.coord.CoordinatorXCommand<Void> org.apache.oozie.command.coord.CoordActionInputCheckXCommand
public class CoordActionInputCheckXCommand
The command to check if an action's data input paths exist in the file system.
Field Summary | |
---|---|
static String |
CONF_COORD_INPUT_CHECK_REQUEUE_INTERVAL
Property name of command re-queue interval for coordinator action input check in milliseconds. |
Fields inherited from class org.apache.oozie.command.XCommand |
---|
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo |
Constructor Summary | |
---|---|
CoordActionInputCheckXCommand(String actionId,
String jobId)
|
Method Summary | |
---|---|
protected boolean |
checkInput(StringBuilder actionXml,
StringBuilder existList,
StringBuilder nonExistList,
org.apache.hadoop.conf.Configuration conf)
To check the list of input paths if all of them exist |
protected void |
eagerLoadState()
Load the necessary state to perform an eager precondition check. |
protected Void |
execute()
Command execution body. |
protected String |
getCoordActionErrorCode()
getting the error code of the coord action. |
protected String |
getCoordActionErrorMsg()
getting the error message of the coord action. |
long |
getCoordInputCheckRequeueInterval()
This function reads the value of re-queue interval for coordinator input check command from the Oozie configuration provided by Configuration Service. |
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 boolean |
pathExists(String sPath,
org.apache.hadoop.conf.Configuration actionConf)
Check if given path exists |
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.XCommand |
---|
call, 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_COORD_INPUT_CHECK_REQUEUE_INTERVAL
Constructor Detail |
---|
public CoordActionInputCheckXCommand(String actionId, String jobId)
Method Detail |
---|
protected Void execute() throws CommandException
XCommand
execute
in class XCommand<Void>
CommandException
- thrown if the command execution failed.public long getCoordInputCheckRequeueInterval()
protected boolean checkInput(StringBuilder actionXml, StringBuilder existList, StringBuilder nonExistList, org.apache.hadoop.conf.Configuration conf) throws Exception
actionXml
- action xmlexistList
- the list of existed pathsnonExistList
- the list of non existed pathsconf
- action configuration
Exception
- thrown of unable to check input pathprotected boolean pathExists(String sPath, org.apache.hadoop.conf.Configuration actionConf) throws IOException
sPath
- uri pathactionConf
- action configuration
IOException
- thrown if unable to access the pathprotected String getCoordActionErrorCode()
protected String getCoordActionErrorMsg()
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 eagerLoadState() throws CommandException
XCommand
eagerLoadState
in class XCommand<Void>
CommandException
protected void loadState() throws CommandException
XCommand
loadState
in class XCommand<Void>
CommandException
protected void verifyPrecondition() throws CommandException, PreconditionException
XCommand
verifyPrecondition
in class XCommand<Void>
CommandException
- thrown if the precondition is not met.
PreconditionException
public String getKey()
XCommand
getKey
in interface XCallable<Void>
getKey
in class XCommand<Void>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |