public abstract class HistoryCleanupHelper extends Object
Constructor and Description |
---|
HistoryCleanupHelper() |
Modifier and Type | Method and Description |
---|---|
static Date |
getBatchWindowEndTime(CommandContext commandContext) |
static Date |
getBatchWindowStartTime(CommandContext commandContext) |
static Date |
getCurrentOrNextBatchWindowStartTime(Date date,
Date startTime,
Date endTime) |
static Date |
getCurrentOrNextRunWithinBatchWindow(Date date,
CommandContext commandContext) |
static HistoryCleanupBatch |
getNextBatch(CommandContext commandContext)
Creates next batch object for history cleanup.
|
static Date |
getNextBatchWindowEndTime(Date date,
Date endTime)
Returns next batch window end time
|
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 boolean |
isWithinBatchWindow(Date date,
Date batchWindowStartTime,
Date batchWindowEndTime) |
static Date |
parseTimeConfiguration(String time) |
public static Date getCurrentOrNextRunWithinBatchWindow(Date date, CommandContext commandContext)
public static Date getNextRunWithinBatchWindow(Date date, CommandContext commandContext)
public static Date getNextRunWithinBatchWindow(Date date, Date batchWindowStartTime)
public static Date getCurrentOrNextBatchWindowStartTime(Date date, Date startTime, Date endTime)
public static Date getNextBatchWindowEndTime(Date date, Date endTime)
date
- current dateendTime
- 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 boolean isWithinBatchWindow(Date date, Date batchWindowStartTime, Date batchWindowEndTime)
public static Date parseTimeConfiguration(String time) throws ParseException
ParseException
public static HistoryCleanupBatch getNextBatch(CommandContext commandContext)
commandContext
- Copyright © 2018. All rights reserved.