public class BundleStatusTransitXCommand extends StatusTransitXCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG| Constructor and Description | 
|---|
BundleStatusTransitXCommand(String id)  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getEntityKey()
Return the entity key for the command. 
 | 
protected Job.Status | 
getJobStatus()
Gets the job status. 
 | 
protected Job.Status | 
getPausedState()
Gets the job pause state. 
 | 
protected Job.Status | 
getRunningState()
Gets the job running state. 
 | 
protected Job.Status | 
getSuspendedStatus()
Gets the suspended status. 
 | 
protected 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(Job.Status bundleStatus)
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, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getKey, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, queue, queue, resetUsed, setInterruptMode, setLogInfo, toStringpublic BundleStatusTransitXCommand(String id)
public String getEntityKey()
XCommandgetEntityKey in interface XCallable<Void>getEntityKey in class XCommand<Void>protected void loadState() throws CommandException
XCommandSubclasses must implement this method and load the state needed to do the precondition check and execute the command.
loadState in class XCommand<Void>CommandExceptionprotected Job.Status getJobStatus() throws CommandException
StatusTransitXCommandgetJobStatus in class StatusTransitXCommandCommandException - the command exceptionprotected boolean isTerminalState()
StatusTransitXCommandisTerminalState in class StatusTransitXCommandprotected Job.Status getTerminalStatus()
StatusTransitXCommandgetTerminalStatus in class StatusTransitXCommandprotected boolean isPausedState()
StatusTransitXCommandisPausedState in class StatusTransitXCommandprotected Job.Status getPausedState()
StatusTransitXCommandgetPausedState in class StatusTransitXCommandprotected boolean isSuspendedState()
StatusTransitXCommandisSuspendedState in class StatusTransitXCommandprotected Job.Status getSuspendedStatus()
StatusTransitXCommandgetSuspendedStatus in class StatusTransitXCommandprotected boolean isRunningState()
StatusTransitXCommandisRunningState in class StatusTransitXCommandprotected Job.Status getRunningState()
StatusTransitXCommandgetRunningState in class StatusTransitXCommandprotected void updateJobStatus(Job.Status bundleStatus) throws JPAExecutorException
StatusTransitXCommandupdateJobStatus in class StatusTransitXCommandbundleStatus - the statusJPAExecutorException - the JPA executor exceptionprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommandverifyPrecondition in class XCommand<Void>CommandException - thrown if the precondition is not met.PreconditionExceptionCopyright © 2016 Apache Software Foundation. All rights reserved.