Class DefaultJobRetryCmd

  • All Implemented Interfaces:
    Command<java.lang.Object>

    public class DefaultJobRetryCmd
    extends JobRetryCmd
    Author:
    Roman Smirnov
    • Field Detail

      • SUPPORTED_TYPES

        public static final java.util.List<java.lang.String> SUPPORTED_TYPES
    • Constructor Detail

      • DefaultJobRetryCmd

        public DefaultJobRetryCmd​(java.lang.String jobId,
                                  java.lang.Throwable exception)
    • 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
      • fetchExecutionEntity

        protected ExecutionEntity fetchExecutionEntity​(java.lang.String executionId)
      • 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)