Enum Class GrouperLoaderScheduleType

java.lang.Object
java.lang.Enum<GrouperLoaderScheduleType>
edu.internet2.middleware.grouper.app.loader.GrouperLoaderScheduleType
All Implemented Interfaces:
Serializable, Comparable<GrouperLoaderScheduleType>, Constable

public enum GrouperLoaderScheduleType extends Enum<GrouperLoaderScheduleType>
schedule types for loaders. note that two jobs never run at the same time. If the interval or schedule is up, and a job is still running, then another will not run concurrently.
  • Enum Constant Details

    • CRON

      public static final GrouperLoaderScheduleType CRON
      quartz cron string to configure the schedule http://www.opensymphony.com/quartz/wikidocs/TutorialLesson6.html
    • START_TO_START_INTERVAL

      public static final GrouperLoaderScheduleType START_TO_START_INTERVAL
      periodic interval, based on the time between the start of one job, and the start of another job
  • Method Details

    • values

      public static GrouperLoaderScheduleType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GrouperLoaderScheduleType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • createTrigger

      public abstract org.quartz.Trigger createTrigger(String name, int priority, String quartzCronString, Integer intervalSeconds)
      create a trigger based on the type (this), and the params (e.g. cron string, interval seconds, etc)
      Parameters:
      name -
      priority -
      quartzCronString -
      intervalSeconds -
      Returns:
      the trigger
    • valueOfIgnoreCase

      public static GrouperLoaderScheduleType valueOfIgnoreCase(String string, boolean exceptionOnNull)
      do a case-insensitive matching
      Parameters:
      string -
      exceptionOnNull - will not allow null or blank entries
      Returns:
      the enum or null or exception if not found