Class CronParser
- java.lang.Object
-
- org.apache.activemq.broker.scheduler.CronParser
-
public class CronParser extends Object
-
-
Constructor Summary
Constructors Constructor Description CronParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static List<Integer>calculateValues(org.apache.activemq.broker.scheduler.CronParser.CronEntry entry)protected static longdoUpdateCurrentDay(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfMonth, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfWeek)protected static longdoUpdateCurrentMonth(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry month)protected static intgetDenominator(String token)static longgetNextScheduledTime(String cronEntry, long currentTime)protected static StringgetNumerator(String token)protected static booleanisAList(String token)protected static booleanisAll(String token)protected static booleanisARange(String token)protected static booleanisAStep(String token)protected static voidresetToStartOfDay(Calendar target, int day)static voidvalidate(String cronEntry)
-
-
-
Constructor Detail
-
CronParser
public CronParser()
-
-
Method Detail
-
getNextScheduledTime
public static long getNextScheduledTime(String cronEntry, long currentTime) throws MessageFormatException
- Throws:
MessageFormatException
-
doUpdateCurrentMonth
protected static long doUpdateCurrentMonth(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry month) throws MessageFormatException
- Throws:
MessageFormatException
-
doUpdateCurrentDay
protected static long doUpdateCurrentDay(Calendar working, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfMonth, org.apache.activemq.broker.scheduler.CronParser.CronEntry dayOfWeek) throws MessageFormatException
- Throws:
MessageFormatException
-
validate
public static void validate(String cronEntry) throws MessageFormatException
- Throws:
MessageFormatException
-
resetToStartOfDay
protected static void resetToStartOfDay(Calendar target, int day)
-
calculateValues
protected static List<Integer> calculateValues(org.apache.activemq.broker.scheduler.CronParser.CronEntry entry)
-
getDenominator
protected static int getDenominator(String token)
-
getNumerator
protected static String getNumerator(String token)
-
-