public abstract class HistoryCleanupHelper extends Object
Modifier and Type | Field and Description |
---|---|
static SimpleDateFormat |
TIME_FORMAT_WITHOUT_SECONDS_WITH_TIMEZONE |
Constructor and Description |
---|
HistoryCleanupHelper() |
Modifier and Type | Method and Description |
---|---|
static Date |
getBatchWindowEndTime(CommandContext commandContext) |
static Date |
getBatchWindowStartTime(CommandContext commandContext) |
static HistoryCleanupBatch |
getNextBatch(CommandContext commandContext)
Creates next batch object for history cleanup.
|
static Date |
getNextRunWithinBatchWindow(Date date,
CommandContext commandContext) |
static Date |
getNextRunWithinBatchWindow(Date date,
Date batchWindowStartTime) |
static boolean |
isBatchWindowConfigured(CommandContext commandContext) |
static boolean |
isWithinBatchWindow(Date date,
CommandContext commandContext)
Checks if given date is within a batch window.
|
static Date |
parseTimeConfiguration(String time) |
public static final SimpleDateFormat TIME_FORMAT_WITHOUT_SECONDS_WITH_TIMEZONE
public static Date getNextRunWithinBatchWindow(Date date, CommandContext commandContext)
public static Date getNextRunWithinBatchWindow(Date date, Date batchWindowStartTime)
public static Date getBatchWindowStartTime(CommandContext commandContext)
public static Date getBatchWindowEndTime(CommandContext commandContext)
public static boolean isBatchWindowConfigured(CommandContext commandContext)
public static boolean isWithinBatchWindow(Date date, CommandContext commandContext)
date
- public static Date parseTimeConfiguration(String time) throws ParseException
ParseException
public static HistoryCleanupBatch getNextBatch(CommandContext commandContext)
commandContext
- Copyright © 2017. All rights reserved.