public class DefaultJobRetryCmd extends JobRetryCmd
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
SUPPORTED_TYPES |
exception, jobId, serialVersionUID| Constructor and Description |
|---|
DefaultJobRetryCmd(String jobId,
Throwable exception) |
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(CommandContext commandContext) |
protected void |
executeCustomStrategy(CommandContext commandContext,
JobEntity job,
ActivityImpl activity) |
protected void |
executeStandardStrategy(CommandContext commandContext) |
protected ExecutionEntity |
fetchExecutionEntity(String executionId) |
protected ActivityImpl |
getCurrentActivity(CommandContext commandContext,
JobEntity job) |
protected DurationHelper |
getDurationHelper(String failedJobRetryTimeCycle) |
protected FailedJobRetryConfiguration |
getFailedJobRetryConfiguration(JobEntity job,
ActivityImpl activity) |
protected String |
getFailedJobRetryTimeCycle(JobEntity job,
Expression expression) |
protected void |
initializeRetries(JobEntity job,
int retries) |
protected boolean |
isFirstJobExecution(JobEntity job) |
decrementRetries, getExceptionStacktrace, getJob, logException, notifyAcquisition, shouldDecrementRetriesForclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisRetryablepublic Object execute(CommandContext commandContext)
protected void executeStandardStrategy(CommandContext commandContext)
protected void executeCustomStrategy(CommandContext commandContext, JobEntity job, ActivityImpl activity) throws Exception
Exceptionprotected ActivityImpl getCurrentActivity(CommandContext commandContext, JobEntity job)
protected ExecutionEntity fetchExecutionEntity(String executionId)
protected FailedJobRetryConfiguration getFailedJobRetryConfiguration(JobEntity job, ActivityImpl activity)
protected String getFailedJobRetryTimeCycle(JobEntity job, Expression expression)
protected DurationHelper getDurationHelper(String failedJobRetryTimeCycle) throws Exception
Exceptionprotected boolean isFirstJobExecution(JobEntity job)
protected void initializeRetries(JobEntity job, int retries)
Copyright © 2022. All rights reserved.