org.apache.jcs.auxiliary.disk.jdbc.mysql.util
Class ScheduleParser

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.jdbc.mysql.util.ScheduleParser

public class ScheduleParser
extends Object

Parses the very simple schedule format.

Author:
Aaron Smuts

Constructor Summary
ScheduleParser()
           
 
Method Summary
static Date[] createDatesForSchedule(String schedule)
          For each date time that is separated by a comma in the OptimizationSchedule, create a date and add it to an array of dates.
static Date getDateForSchedule(String startTime)
          For a single string it creates a date that is the next time this hh:mm:ss combo will be seen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScheduleParser

public ScheduleParser()
Method Detail

createDatesForSchedule

public static Date[] createDatesForSchedule(String schedule)
                                     throws ScheduleFormatException
For each date time that is separated by a comma in the OptimizationSchedule, create a date and add it to an array of dates.

Parameters:
schedule -
Returns:
Date[]
Throws:
ScheduleFormatException

getDateForSchedule

public static Date getDateForSchedule(String startTime)
                               throws ScheduleFormatException
For a single string it creates a date that is the next time this hh:mm:ss combo will be seen.

Parameters:
startTime -
Returns:
Date
Throws:
ScheduleFormatException


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.