public class BundleKillXCommand extends KillTransitionXCommand
retinsertList, job, updateListDEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG| Constructor and Description |
|---|
BundleKillXCommand(String jobId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getEntityKey()
Return the entity key for the command.
|
Job |
getJob()
Get the Job for the command.
|
String |
getKey()
Get command key
|
protected boolean |
isLockRequired()
Indicate if the the command requires locking.
|
void |
killChildren() |
void |
loadState()
Load the necessary state to perform the precondition check and to execute the command.
|
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 |
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.
|
execute, transitToNextgenerateEvents, setJobcall, call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, setLogInfo, toStringpublic BundleKillXCommand(String jobId)
public String getEntityKey()
XCommandgetEntityKey in interface XCallablegetEntityKey in class XCommandprotected boolean isLockRequired()
XCommandisLockRequired in class XCommandtrue/falsepublic void loadState() throws CommandException
XCommandloadState in class XCommandCommandExceptionprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommandverifyPrecondition in class XCommandCommandException - thrown if the precondition is not met.PreconditionExceptionpublic void killChildren() throws CommandException
killChildren in class KillTransitionXCommandCommandExceptionpublic void notifyParent()
TransitionXCommandnotifyParent in class TransitionXCommandpublic Job getJob()
TransitionXCommandgetJob in class TransitionXCommandpublic void updateJob()
TransitionXCommandupdateJob in class TransitionXCommandpublic void performWrites() throws CommandException
TransitionXCommandperformWrites in class TransitionXCommandCommandExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.