Package com.illumon.iris.controller
Class IrisSchedulerFactory
java.lang.Object
com.illumon.iris.controller.IrisSchedulerFactory
Factory to create IrisScheduler instanced
This class is intended to access various IrisScheduler functionality that requires reflexive instantiation of the
appropriate IrisScheduler class instance based on the stored String[]. It includes the following functionality:
1. createIrisScheduler - based on the supplied String[], create a fully-populated IrisScheduler implementation
instance.
2. createEmptyIrisScheduler - create a non-populated IrisScheduler implementation instance. This is used within
this class to be able to parse String[] without creating fully-functional IrisScheduler instances. This requires
at least the scheduler class name.
3. Various get functions, which create displayable Strings from the supplied String[].
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a default, minimal, disabled scheduler, useful as a fallback.createIrisScheduler
(String[] strings) getDetailDisplayableString
(String[] strings, Map<Long, PersistentQueryInfo> queryInfos) getStartTimeDisplay
(String[] strings) getStopTimeDisplay
(String[] strings) getTimeZoneDisplay
(String[] strings) static boolean
isAutoDeleteScheduler
(String[] strings) static boolean
isTemporaryScheduler
(String[] strings) Determine if this query is a temporary query, without the overhead of instantiating a scheduler.static boolean
shouldCheckDependencies
(String[] strings) Determine if this query is __possibly__ a dependent query, without the overhead of instantiating a scheduler.static void
updateDefaultSchedulerSettings
(String[] updatedDefaultSchedulerStrings, int updatedMaxDaysToLookForward)
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
IrisSchedulerFactory
public IrisSchedulerFactory()
-
-
Method Details
-
updateDefaultSchedulerSettings
public static void updateDefaultSchedulerSettings(String[] updatedDefaultSchedulerStrings, int updatedMaxDaysToLookForward) -
createIrisScheduler
-
createDefaultScheduler
Create a default, minimal, disabled scheduler, useful as a fallback.- Returns:
- an
IrisScheduler
that won't start the PQ
-
getDetailDisplayableString
public String getDetailDisplayableString(String[] strings, Map<Long, PersistentQueryInfo> queryInfos) -
getStartTimeDisplay
-
getStopTimeDisplay
-
getTimeZoneDisplay
-
isTemporaryScheduler
Determine if this query is a temporary query, without the overhead of instantiating a scheduler.- Parameters:
strings
- the scheduling strings from the configuration.- Returns:
- true if the query is a temporary query, false otherwise
-
isAutoDeleteScheduler
-
shouldCheckDependencies
Determine if this query is __possibly__ a dependent query, without the overhead of instantiating a scheduler.- Parameters:
strings
- the scheduling strings from the configuration.- Returns:
- true if the query is possibly a dependent query, false otherwise
-