Package org.camunda.bpm.engine.impl.cmd
Class DefaultJobRetryCmd
- java.lang.Object
-
- org.camunda.bpm.engine.impl.cmd.JobRetryCmd
-
- org.camunda.bpm.engine.impl.cmd.DefaultJobRetryCmd
-
- All Implemented Interfaces:
Command<java.lang.Object>
public class DefaultJobRetryCmd extends JobRetryCmd
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>SUPPORTED_TYPES-
Fields inherited from class org.camunda.bpm.engine.impl.cmd.JobRetryCmd
exception, jobId, serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description DefaultJobRetryCmd(java.lang.String jobId, java.lang.Throwable exception)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectexecute(CommandContext commandContext)protected voidexecuteCustomStrategy(CommandContext commandContext, JobEntity job, ActivityImpl activity)protected voidexecuteStandardStrategy(CommandContext commandContext)protected ExecutionEntityfetchExecutionEntity(java.lang.String executionId)protected ActivityImplgetCurrentActivity(CommandContext commandContext, JobEntity job)protected DurationHelpergetDurationHelper(java.lang.String failedJobRetryTimeCycle)protected FailedJobRetryConfigurationgetFailedJobRetryConfiguration(JobEntity job, ActivityImpl activity)protected java.lang.StringgetFailedJobRetryTimeCycle(JobEntity job, Expression expression)protected voidinitializeRetries(JobEntity job, int retries)protected booleanisFirstJobExecution(JobEntity job)-
Methods inherited from class org.camunda.bpm.engine.impl.cmd.JobRetryCmd
decrementRetries, getExceptionStacktrace, getJob, logException, notifyAcquisition, shouldDecrementRetriesFor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.camunda.bpm.engine.impl.interceptor.Command
isRetryable
-
-
-
-
Method Detail
-
execute
public java.lang.Object execute(CommandContext commandContext)
-
executeStandardStrategy
protected void executeStandardStrategy(CommandContext commandContext)
-
executeCustomStrategy
protected void executeCustomStrategy(CommandContext commandContext, JobEntity job, ActivityImpl activity) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getCurrentActivity
protected ActivityImpl getCurrentActivity(CommandContext commandContext, JobEntity job)
-
fetchExecutionEntity
protected ExecutionEntity fetchExecutionEntity(java.lang.String executionId)
-
getFailedJobRetryConfiguration
protected FailedJobRetryConfiguration getFailedJobRetryConfiguration(JobEntity job, ActivityImpl activity)
-
getFailedJobRetryTimeCycle
protected java.lang.String getFailedJobRetryTimeCycle(JobEntity job, Expression expression)
-
getDurationHelper
protected DurationHelper getDurationHelper(java.lang.String failedJobRetryTimeCycle) throws java.lang.Exception
- Throws:
java.lang.Exception
-
isFirstJobExecution
protected boolean isFirstJobExecution(JobEntity job)
-
initializeRetries
protected void initializeRetries(JobEntity job, int retries)
-
-