Package com.illumon.iris.controller
Class IrisQuerySchedulerDaily
java.lang.Object
com.illumon.iris.controller.IrisQueryScheduler
com.illumon.iris.controller.IrisQuerySchedulerDaily
- All Implemented Interfaces:
IrisScheduler
Implementation of scheduler for daily scheduling. This is intended for queries that will be run on specified
days of the week, or on business days.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.controller.IrisQueryScheduler
IrisQueryScheduler.RestartWhenRunning -
Field Summary
Fields inherited from class com.illumon.iris.controller.IrisQueryScheduler
DISABLED_PARSE_STRING, overnight, RESTART_COUNT_UNLIMITED, timeZoneFields inherited from interface com.illumon.iris.controller.IrisScheduler
DELIMITER_TOKEN, SCHEDULER_TYPE_TOKEN -
Constructor Summary
ConstructorsConstructorDescriptionIrisQuerySchedulerDaily(String startTime, String stopTime, String timeZone, boolean schedulingDisabled, boolean overnight, String businessCalendar, boolean businessDays, boolean[] days, boolean repeatEnabled, String repeatInterval, boolean skipIfUnsuccessful, boolean stopTimeDisabled, int errorRestartCount, String restartDelayMinutes, IrisQueryScheduler.RestartWhenRunning restartWhenRunning) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy this objectbooleanvoidgenerateSchedulerTimes(Long lookPastTime, Map<Long, PersistentQueryInfo> queryInfos) Generate the next start/stop time values for this query.String[]booleanboolean[]getScheduleDetailDisplay(String[] strings, Map<Long, PersistentQueryInfo> queryInfos) voidpopulateSchedulerFromStringArray(String[] strings) voidvalidate(Map<Long, PersistentQueryInfo> allConfigurations) Validate the scheduling.Methods inherited from class com.illumon.iris.controller.IrisQueryScheduler
copyBaseFieldsFrom, enforceStartStopTimeOrder, getRepeatInterval, getRestartDelayMinutes, getRestartErrorCount, getRestartWhenRunning, getRestartWhenRunningValues, getSchedulingDisabled, getStartTime, getStartTimeDisplay, getStartTimeInMillis, getStartTimeOfDay, getStopTime, getStopTimeDisplay, getStopTimeInMillis, getStopTimeOfDay, getTimeZoneDisplay, getTimeZoneString, hasStartTime, hasStopTime, isOvernight, isRepeatEnabled, isStartTimeFirstForDay, isStopTimeDisabled, shouldRestartWhenRunning, skipIfUnsuccessfulMethods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.controller.IrisScheduler
areConditionsMet, enforceStartStopTimeOrder, getDependentOnQuerySerials, getExpirationTimeMillis, getRepeatInterval, getRestartDelayMinutes, getRestartErrorCount, getRunOnFailure, getSchedulingDisabled, getStartTimeDisplay, getStartTimeInMillis, getStartTimeOfDay, getStopTimeDisplay, getStopTimeInMillis, getStopTimeOfDay, getTemporaryQueueName, getTimeZoneDisplay, getTimeZoneString, hasStopTime, isAutoDelete, isOvernight, isRepeatEnabled, isStartTimeFirstForDay, setDependentOnQuerySerials, shouldRestartWhenRunning, skipIfUnsuccessful, updateDependencyState, updateDependencyState
-
Constructor Details
-
IrisQuerySchedulerDaily
public IrisQuerySchedulerDaily() -
IrisQuerySchedulerDaily
public IrisQuerySchedulerDaily(String startTime, String stopTime, String timeZone, boolean schedulingDisabled, boolean overnight, String businessCalendar, boolean businessDays, boolean[] days, boolean repeatEnabled, String repeatInterval, boolean skipIfUnsuccessful, boolean stopTimeDisabled, int errorRestartCount, String restartDelayMinutes, IrisQueryScheduler.RestartWhenRunning restartWhenRunning)
-
-
Method Details
-
generateStringArrayFromScheduler
- Specified by:
generateStringArrayFromSchedulerin interfaceIrisScheduler
-
populateSchedulerFromStringArray
- Specified by:
populateSchedulerFromStringArrayin interfaceIrisScheduler
-
equals
- Overrides:
equalsin classIrisQueryScheduler
-
copy
Description copied from interface:IrisSchedulerCopy this object- Specified by:
copyin interfaceIrisScheduler- Returns:
- a new object with exactly the same scheduler definition as this one
-
getBusinessCalendarString
-
getDaysArray
public boolean[] getDaysArray() -
getBusinessDays
public boolean getBusinessDays() -
generateSchedulerTimes
Description copied from interface:IrisSchedulerGenerate the next start/stop time values for this query. Generated values of -1 will be used to indicate no start or stop time. After calling this, calling getStartTimeInMillis will return the generated start time and calling getStopTimeInMillis will return the generated stop time.- Specified by:
generateSchedulerTimesin interfaceIrisScheduler- Parameters:
lookPastTime- the time in millis past which the scheduling engine looks for the next start time, or null if none is desiredqueryInfos- the controller's query information Map
-
getScheduleDetailDisplay
- Specified by:
getScheduleDetailDisplayin interfaceIrisScheduler
-
validate
Description copied from interface:IrisSchedulerValidate the scheduling.- Specified by:
validatein interfaceIrisScheduler- Overrides:
validatein classIrisQueryScheduler- Parameters:
allConfigurations- a map of all current query configurations which can be used for additional validation
-