org.camunda.bpm.engine.impl.cmd
Class FoxJobRetryCmd

java.lang.Object
  extended by org.camunda.bpm.engine.impl.cmd.JobRetryCmd
      extended by org.camunda.bpm.engine.impl.cmd.FoxJobRetryCmd
All Implemented Interfaces:
Command<Object>

public class FoxJobRetryCmd
extends JobRetryCmd

Author:
Roman Smirnov

Field Summary
 
Fields inherited from class org.camunda.bpm.engine.impl.cmd.JobRetryCmd
exception, jobId, serialVersionUID
 
Constructor Summary
FoxJobRetryCmd(String jobId, Throwable exception)
           
 
Method Summary
 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)
           
 
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
 

Constructor Detail

FoxJobRetryCmd

public FoxJobRetryCmd(String jobId,
                      Throwable exception)
Method Detail

execute

public Object execute(CommandContext commandContext)

executeStandardStrategy

protected void executeStandardStrategy(CommandContext commandContext)

executeCustomStrategy

protected void executeCustomStrategy(CommandContext commandContext,
                                     JobEntity job,
                                     ActivityImpl activity)
                              throws Exception
Throws:
Exception

getCurrentActivity

protected ActivityImpl getCurrentActivity(CommandContext commandContext,
                                          JobEntity job)

fetchExecutionEntity

protected ExecutionEntity fetchExecutionEntity(String executionId)

getFailedJobRetryTimeCycle

protected String getFailedJobRetryTimeCycle(ActivityImpl activity)

getDurationHelper

protected DurationHelper getDurationHelper(String failedJobRetryTimeCycle)
                                    throws Exception
Throws:
Exception

setLockExpirationTime

protected void setLockExpirationTime(JobEntity job,
                                     String failedJobRetryTimeCycle,
                                     DurationHelper durationHelper)

isFirstJobExecution

protected boolean isFirstJobExecution(JobEntity job)

initializeRetries

protected void initializeRetries(JobEntity job,
                                 String failedJobRetryTimeCycle,
                                 DurationHelper durationHelper)


Copyright © 2016 camunda services GmbH. All rights reserved.