Class ScheduleParser
java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.mysql.util.ScheduleParser
Parses the very simple schedule format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
ScheduleParser
public ScheduleParser()
-
-
Method Details
-
createDatesForSchedule
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:
ParseException
-
getDateForSchedule
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:
ParseException
-