info.aduna.autofocus.http.webclient.schedules
Class SchedulesHelper
java.lang.Object
info.aduna.autofocus.http.webclient.schedules.SchedulesHelper
public class SchedulesHelper
- extends Object
- Author:
- Herko ter Horst
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SchedulesHelper
public SchedulesHelper()
getScheduleInfos
public static <S extends ScheduleInfo> List<S> getScheduleInfos(String prefix,
String ID,
List<String> schedules,
Class<S> clazz)
getNextRefreshDate
public static Date getNextRefreshDate(org.quartz.Scheduler scheduler,
String prefix,
String jobID)
- Gets the next date/time at which the specified profile will be refreshed.
- Parameters:
profileID - The ID of a profile.
- Returns:
- A Date object representing the next refresh date, or null
if the specified profile is not scheduled to be refreshned.
getNextRefreshDate
public static Date getNextRefreshDate(String schedule)
- Gets the next date/time at which the specified profile will be refreshed
because of the specified refresh schedule.
- Parameters:
profileID - The ID of a profile.schedule - A refresh schedule.
- Returns:
- A Date object representing the next refresh date, or null
if the specified schedule is not a schedule for the specified info
source, or if it won't fire again.
Copyright © 1997-2008 Aduna. All Rights Reserved.