org.apache.activemq.broker.scheduler
Class CronParser

java.lang.Object
  extended by org.apache.activemq.broker.scheduler.CronParser

public class CronParser
extends Object


Constructor Summary
CronParser()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)

isARange

protected static boolean isARange(String token)

isAStep

protected static boolean isAStep(String token)

isAList

protected static boolean isAList(String token)

isAll

protected static boolean isAll(String token)

getDenominator

protected static int getDenominator(String token)

getNumerator

protected static String getNumerator(String token)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.