public class CoordActionsIgnoreXCommand extends IgnoreTransitionXCommand<CoordinatorActionInfo>
ret
insertList, job, updateList
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG, logInfo
Constructor and Description |
---|
CoordActionsIgnoreXCommand(String coordId,
String type,
String scope) |
Modifier and Type | Method and Description |
---|---|
String |
getEntityKey()
Return the entity key for the command.
|
void |
ignoreChildren() |
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.
|
void |
performWrites()
This will be used to perform atomically all the writes within this command.
|
protected void |
verifyPrecondition()
Verify the precondition for the command after a lock has been obtain, just before executing the command.
|
execute, notifyParent, transitToNext, updateJob
generateEvents, getJob, setJob
call, call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getKey, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, toString
public CoordActionsIgnoreXCommand(String coordId, String type, String scope)
protected void verifyPrecondition() throws CommandException, PreconditionException
XCommand
verifyPrecondition
in class XCommand<CoordinatorActionInfo>
CommandException
- thrown if the precondition is not met.PreconditionException
public void ignoreChildren() throws CommandException
ignoreChildren
in class IgnoreTransitionXCommand<CoordinatorActionInfo>
CommandException
public void performWrites() throws CommandException
TransitionXCommand
performWrites
in class TransitionXCommand<CoordinatorActionInfo>
CommandException
protected boolean isLockRequired()
XCommand
isLockRequired
in class XCommand<CoordinatorActionInfo>
true/false
public String getEntityKey()
XCommand
getEntityKey
in interface XCallable<CoordinatorActionInfo>
getEntityKey
in class XCommand<CoordinatorActionInfo>
protected void loadState() throws CommandException
XCommand
loadState
in class XCommand<CoordinatorActionInfo>
CommandException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.