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 java.lang.Object

Parses the very simple schedule format.

Author:
Aaron Smuts

Constructor Summary
ScheduleParser()
           
 
Method Summary
static java.util.Date[] createDatesForSchedule(java.lang.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 java.util.Date getDateForSchedule(java.lang.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 java.util.Date[] createDatesForSchedule(java.lang.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 java.util.Date getDateForSchedule(java.lang.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-2010 Apache Software Foundation. All Rights Reserved.