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, verifyPreconditioncall, call, eagerLoadState, eagerVerifyPrecondition, executeInterrupts, getCreatedTime, getInstrumentation, getLockTimeOut, getLog, getName, getPriority, getRequeueDelay, getType, inInterruptMode, isReQueueRequired, queue, queue, resetUsed, setInterruptMode, toStringpublic BundleSLAAlertsXCommand(String jobId, String actions, String dates, String childIds)
protected void loadState() throws CommandException
XCommandloadState in class SLAAlertsXCommandCommandExceptionprotected 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 SLAAlertsXCommandprotected boolean executeSlaCommand() throws ServiceException, CommandException
SLAAlertsXCommandexecuteSlaCommand in class SLAAlertsXCommandServiceException - the service exceptionCommandException - the command exceptionprotected abstract void executeCoordCommand(String id, String actions, String dates) throws ServiceException, CommandException
ServiceExceptionCommandExceptionCopyright © 2015 Apache Software Foundation. All Rights Reserved.