edu.internet2.middleware.grouper.app.loader
Enum GrouperLoaderScheduleType

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

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 Summary
CRON
          quartz cron string to configure the schedule http://www.opensymphony.com/quartz/wikidocs/TutorialLesson6.html
START_TO_START_INTERVAL
          periodic interval, based on the time between the start of one job, and the start of another job
 
Method Summary
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.
static GrouperLoaderScheduleType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GrouperLoaderScheduleType valueOfIgnoreCase(String string, boolean exceptionOnNull)
          do a case-insensitive matching
static GrouperLoaderScheduleType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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 Detail

values

public static GrouperLoaderScheduleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (GrouperLoaderScheduleType c : GrouperLoaderScheduleType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static GrouperLoaderScheduleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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