Package com.illumon.iris.controller
Class IrisSchedulerFactory
java.lang.Object
com.illumon.iris.controller.IrisSchedulerFactory
public class IrisSchedulerFactory extends Object
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 Modifier and Type Field Description static IrisSchedulerFactory
INSTANCE
-
Constructor Summary
Constructors Constructor Description IrisSchedulerFactory()
-
Method Summary
Modifier and Type Method Description IrisScheduler
createIrisScheduler(String[] strings)
String
getDetailDisplayableString(String[] strings, Map<Long,PersistentQueryInfo> queryInfos)
String
getStartTimeDisplay(String[] strings)
String
getStopTimeDisplay(String[] strings)
String
getTimeZoneDisplay(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
-
Constructor Details
-
IrisSchedulerFactory
public IrisSchedulerFactory()
-
-
Method Details
-
updateDefaultSchedulerSettings
public static void updateDefaultSchedulerSettings(String[] updatedDefaultSchedulerStrings, int updatedMaxDaysToLookForward) -
createIrisScheduler
-
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
-
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
-