public class CoordSLAChangeXCommand extends CoordSLAAlertsXCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG
Constructor and Description |
---|
CoordSLAChangeXCommand(String jobId,
String actions,
String dates,
Map<String,String> newParams) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeSlaCommand()
Execute sla 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.
|
getActionDateListAsString, getActionList, getJobConf, isJobRequest, loadState, updateJobConf, updateJobSLA, updateSlaTagElement
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 boolean executeSlaCommand() throws ServiceException, CommandException
SLAAlertsXCommand
executeSlaCommand
in class SLAAlertsXCommand
ServiceException
- the service exceptionCommandException
- the command exceptionprotected 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.