public class CronParser extends Object
Constructor and Description |
---|
CronParser() |
Modifier and Type | Method and Description |
---|---|
protected static List<Integer> |
calculateValues(org.apache.activemq.broker.scheduler.CronParser.CronEntry entry) |
protected static long |
doUpdateCurrentDay(Calendar working,
org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfMonth,
org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfWeek) |
protected static long |
doUpdateCurrentMonth(Calendar working,
org.apache.activemq.broker.scheduler.CronParser.CronEntry month) |
protected static int |
getDenominator(String token) |
static long |
getNextScheduledTime(String cronEntry,
long currentTime) |
protected static String |
getNumerator(String token) |
protected static boolean |
isAList(String token) |
protected static boolean |
isAll(String token) |
protected static boolean |
isARange(String token) |
protected static boolean |
isAStep(String token) |
protected static void |
resetToStartOfDay(Calendar target,
int day) |
static void |
validate(String cronEntry) |
public CronParser()
public static long getNextScheduledTime(String cronEntry, long currentTime) throws MessageFormatException
MessageFormatException
protected static long doUpdateCurrentMonth(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry month) throws MessageFormatException
MessageFormatException
protected static long doUpdateCurrentDay(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfMonth, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfWeek) throws MessageFormatException
MessageFormatException
public static void validate(String cronEntry) throws MessageFormatException
MessageFormatException
protected static void resetToStartOfDay(Calendar target, int day)
protected static List<Integer> calculateValues(org.apache.activemq.broker.scheduler.CronParser.CronEntry entry)
protected static int getDenominator(String token)
protected static String getNumerator(String token)
Copyright © 2005–2016 FuseSource, Corp.. All rights reserved.