public class FoxJobRetryCmd extends JobRetryCmd
exception, jobId, serialVersionUID
Constructor and Description |
---|
FoxJobRetryCmd(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 String |
getFailedJobRetryTimeCycle(ActivityImpl activity) |
protected void |
initializeRetries(JobEntity job,
String failedJobRetryTimeCycle,
DurationHelper durationHelper) |
protected boolean |
isFirstJobExecution(JobEntity job) |
protected void |
setLockExpirationTime(JobEntity job,
String failedJobRetryTimeCycle,
DurationHelper durationHelper) |
decrementRetries, getExceptionStacktrace, getJob, logException, notifyAcquisition, shouldDecrementRetriesFor, unlockJob
public Object execute(CommandContext commandContext)
protected void executeStandardStrategy(CommandContext commandContext)
protected void executeCustomStrategy(CommandContext commandContext, JobEntity job, ActivityImpl activity) throws Exception
Exception
protected ActivityImpl getCurrentActivity(CommandContext commandContext, JobEntity job)
protected ExecutionEntity fetchExecutionEntity(String executionId)
protected String getFailedJobRetryTimeCycle(ActivityImpl activity)
protected DurationHelper getDurationHelper(String failedJobRetryTimeCycle) throws Exception
Exception
protected void setLockExpirationTime(JobEntity job, String failedJobRetryTimeCycle, DurationHelper durationHelper)
protected boolean isFirstJobExecution(JobEntity job)
protected void initializeRetries(JobEntity job, String failedJobRetryTimeCycle, DurationHelper durationHelper)
Copyright © 2018. All rights reserved.