public abstract class BundleSLAAlertsXCommand extends SLAAlertsXCommand
DEFAULT_LOCK_TIMEOUT, DEFAULT_REQUEUE_DELAY, dryrun, eventService, instrumentation, INSTRUMENTATION_GROUP, LOG
Constructor and Description |
---|
BundleSLAAlertsXCommand(String jobId,
String actions,
String dates,
String childIds) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
executeCoordCommand(String id,
String actions,
String dates) |
protected boolean |
executeSlaCommand()
Execute sla command.
|
protected String |
getActions()
Gets the actions.
|
protected String |
getCoordJobs()
Gets the coord jobs.
|
protected Set<String> |
getCoordJobsFromBundle(String id,
String coords)
Gets the coord jobs from bundle.
|
protected String |
getDates()
Gets the dates.
|
protected boolean |
isJobRequest() |
protected void |
loadState()
Load the necessary state to perform the precondition check and to execute the command.
|
execute, getEntityKey, getJobId, getKey, isLockRequired, setLogInfo, updateJob, validateSLAChangeParam, verifyPrecondition
call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, toString
public BundleSLAAlertsXCommand(String jobId, String actions, String dates, String childIds)
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 SLAAlertsXCommand
CommandException
protected Set<String> getCoordJobsFromBundle(String id, String coords) throws CommandException
id
- the bundle idcoords
- the coords name/idCommandException
- the command exceptionprotected String getCoordJobs()
protected String getActions()
protected boolean isJobRequest()
isJobRequest
in class SLAAlertsXCommand
protected boolean executeSlaCommand() throws ServiceException, CommandException
SLAAlertsXCommand
executeSlaCommand
in class SLAAlertsXCommand
ServiceException
- the service exceptionCommandException
- the command exceptionprotected abstract void executeCoordCommand(String id, String actions, String dates) throws ServiceException, CommandException
ServiceException
CommandException
Copyright © 2018 Apache Software Foundation. All rights reserved.