public class BundleSLAChangeXCommand extends BundleSLAAlertsXCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG
Constructor and Description |
---|
BundleSLAChangeXCommand(String jobId,
String actions,
String dates,
String childIds,
Map<String,String> newSlaParams) |
Modifier and Type | Method and Description |
---|---|
protected void |
executeCoordCommand(String id,
String actions,
String dates) |
protected void |
loadState()
Load the necessary state to perform the precondition check and to execute the command.
|
protected void |
updateJob()
Update job.
|
protected void |
verifyPrecondition()
Verify the precondition for the command after a lock has been obtain, just before executing the command.
|
executeSlaCommand, getActions, getCoordJobs, getCoordJobsFromBundle, getDates, isJobRequest
execute, getEntityKey, getJobId, getKey, isLockRequired, setLogInfo, validateSLAChangeParam
call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, toString
protected void loadState() throws CommandException
XCommand
Subclasses must implement this method and load the state needed to do the precondition check and execute the command.
loadState
in class BundleSLAAlertsXCommand
CommandException
protected void executeCoordCommand(String id, String actions, String dates) throws ServiceException, CommandException
executeCoordCommand
in class BundleSLAAlertsXCommand
ServiceException
CommandException
protected void updateJob() throws CommandException
SLAAlertsXCommand
updateJob
in class SLAAlertsXCommand
CommandException
- the command exceptionprotected void verifyPrecondition() throws CommandException, PreconditionException
XCommand
verifyPrecondition
in class SLAAlertsXCommand
CommandException
- thrown if the precondition is not met.PreconditionException
Copyright © 2018 Apache Software Foundation. All rights reserved.