Class CronPatternBuilder

java.lang.Object
com.almis.awe.scheduler.builder.cron.CronPatternBuilder
All Implemented Interfaces:
Serializable

public class CronPatternBuilder extends Object implements Serializable
Author:
dfuentes
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CronPattern
  • Method Summary

    Modifier and Type
    Method
    Description
    org.quartz.CronScheduleBuilder
    Sets the value of each parameter depending on the selected value of 'Repeat type' witch can be: minutes,hours,days,week or years
    repeatEach(int start, int repeatEach)
    Returns a String with the pattern to repeat a parameter a number of times with a starting point

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CronPatternBuilder

      public CronPatternBuilder(Schedule schedule)
      CronPattern
      Parameters:
      schedule - schedule
  • Method Details

    • build

      public org.quartz.CronScheduleBuilder build() throws AWException
      Sets the value of each parameter depending on the selected value of 'Repeat type' witch can be: minutes,hours,days,week or years
      Throws:
      AWException - AWE exception
    • repeatEach

      public String repeatEach(int start, int repeatEach)
      Returns a String with the pattern to repeat a parameter a number of times with a starting point
      Parameters:
      start - start field of pattern
      repeatEach - repeat field of pattern
      Returns:
      String with the pattern