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 Details

  • Constructor Details

    • IrisSchedulerFactory

      public IrisSchedulerFactory()
  • Method Details

    • updateDefaultSchedulerSettings

      public static void updateDefaultSchedulerSettings(String[] updatedDefaultSchedulerStrings, int updatedMaxDaysToLookForward)
    • createIrisScheduler

      public IrisScheduler createIrisScheduler(String[] strings)
    • createDefaultScheduler

      public IrisScheduler 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

      public String getStartTimeDisplay(String[] strings)
    • getStopTimeDisplay

      public String getStopTimeDisplay(String[] strings)
    • getTimeZoneDisplay

      public String getTimeZoneDisplay(String[] strings)
    • isTemporaryScheduler

      public static boolean isTemporaryScheduler(String[] strings)
      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

      public static boolean isAutoDeleteScheduler(String[] strings)
    • shouldCheckDependencies

      public static boolean shouldCheckDependencies(String[] strings)
      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