Class CronItem


  • public class CronItem
    extends java.lang.Object
    class representing one Job cron item

    here, an "item" refers to one of the 5 fields in a cron string; "element" refers to any comma-deliminated element in an "item"...which includes both numbers and '-' separated ranges.

    for each of the 5 cron fields, it's represented as a CronItem

    Version:
    $Revision$, $Date$
    Author:
    cfu
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String ALL  
      protected static java.lang.String DELIM  
      static org.slf4j.Logger logger  
      protected java.util.Vector<CronRange> mElements  
      protected static java.lang.String RANGE  
    • Constructor Summary

      Constructors 
      Constructor Description
      CronItem​(int min, int max)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Vector<CronRange> getElements()
      get the vector stuffed with elements where each element is represented as CronRange
      void set​(java.lang.String sItem)
      parses and sets a string cron item
      • Methods inherited from class java.lang.Object

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

      • CronItem

        public CronItem​(int min,
                        int max)
    • Method Detail

      • set

        public void set​(java.lang.String sItem)
                 throws EBaseException
        parses and sets a string cron item
        Parameters:
        sItem - the string representing an item of a cron string. item can be potentially comma separated with ranges specified with '-'s
        Throws:
        EBaseException
      • getElements

        public java.util.Vector<CronRange> getElements()
        get the vector stuffed with elements where each element is represented as CronRange
        Returns:
        a vector of CronRanges