Class HistoryCleanupCmd

java.lang.Object
org.camunda.bpm.engine.impl.cmd.HistoryCleanupCmd
All Implemented Interfaces:
Command<Job>

public class HistoryCleanupCmd extends Object implements Command<Job>
Author:
Svetlana Dorokhova
  • Field Details

    • HISTORY_CLEANUP_JOB_DECLARATION

      public static final JobDeclaration HISTORY_CLEANUP_JOB_DECLARATION
    • MAX_THREADS_NUMBER

      public static final int MAX_THREADS_NUMBER
      See Also:
  • Constructor Details

    • HistoryCleanupCmd

      public HistoryCleanupCmd(boolean immediatelyDue)
  • Method Details

    • execute

      public Job execute(CommandContext context)
      Specified by:
      execute in interface Command<Job>
    • getHistoryCleanupJobs

      protected List<Job> getHistoryCleanupJobs()
    • shouldCreateJobs

      protected boolean shouldCreateJobs(List<Job> jobs)
    • shouldReconfigureJobs

      protected boolean shouldReconfigureJobs(List<Job> jobs)
    • shouldSuspendJobs

      protected boolean shouldSuspendJobs(List<Job> jobs)
    • willBeScheduled

      protected boolean willBeScheduled()
    • createJobs

      protected List<Job> createJobs(int[][] minuteChunks)
    • reconfigureJobs

      protected List<Job> reconfigureJobs(List<Job> historyCleanupJobs, int degreeOfParallelism, int[][] minuteChunks)
    • suspendJobs

      protected void suspendJobs(List<Job> jobs)
    • createJob

      protected JobEntity createJob(int[] minuteChunk, int maxRetries)
    • createCleanupContext

      protected HistoryCleanupContext createCleanupContext(int[] minuteChunk, int maxRetries)
    • writeUserOperationLog

      protected void writeUserOperationLog(CommandContext commandContext)
    • acquireExclusiveLock

      protected void acquireExclusiveLock(CommandContext commandContext)