Modifier and Type | Field and Description |
---|---|
static JobDeclaration |
HISTORY_CLEANUP_JOB_DECLARATION |
static int |
MAX_THREADS_NUMBER |
Constructor and Description |
---|
HistoryCleanupCmd(boolean immediatelyDue) |
Modifier and Type | Method and Description |
---|---|
protected HistoryCleanupContext |
createCleanupContext(int[] minuteChunk) |
protected JobEntity |
createJob(int[] minuteChunk) |
protected List<Job> |
createJobs(int degreeOfParallelism,
int[][] minuteChunks) |
Job |
execute(CommandContext commandContext) |
protected List<Job> |
getHistoryCleanupJobs() |
protected List<Job> |
reconfigureJobs(List<Job> historyCleanupJobs,
int degreeOfParallelism,
int[][] minuteChunks) |
protected boolean |
shouldCreateJobs(List<Job> jobs) |
protected boolean |
shouldReconfigureJobs(List<Job> jobs) |
protected boolean |
shouldSuspendJobs(List<Job> jobs) |
protected void |
suspendJobs(List<Job> jobs) |
protected boolean |
willBeScheduled() |
public static final JobDeclaration HISTORY_CLEANUP_JOB_DECLARATION
public static final int MAX_THREADS_NUMBER
public Job execute(CommandContext commandContext)
protected boolean willBeScheduled()
protected List<Job> reconfigureJobs(List<Job> historyCleanupJobs, int degreeOfParallelism, int[][] minuteChunks)
protected JobEntity createJob(int[] minuteChunk)
protected HistoryCleanupContext createCleanupContext(int[] minuteChunk)
Copyright © 2020. All rights reserved.