Class CronEntryImpl

  • All Implemented Interfaces:
    CronEntry

    public class CronEntryImpl
    extends Object
    implements CronEntry
    Implementation of the CronEntry interface used to describe a single cron task.
    • Method Detail

      • getDescription

        public String getDescription()
        Description copied from interface: CronEntry
        Returns the human-readable description of this cron entry.
        Specified by:
        getDescription in interface CronEntry
        Returns:
        the text from the <description> element in cron.xml, or null if none was supplied.
      • getNextTimesIterator

        public Iterator<String> getNextTimesIterator()
        Description copied from interface: CronEntry
        Returns an iterator over upcoming execution times. For schedules that are not explicitly fixed to clock time (e.g. "every 12 hours"), the current time will be used by this iterator, whereas time-of-last-update will be used on the production server.
        Specified by:
        getNextTimesIterator in interface CronEntry
        Returns:
        a new iterator which can be queried for future execution times.
      • getSchedule

        public String getSchedule()
        Description copied from interface: CronEntry
        Returns the schedule of this cron entry.
        Specified by:
        getSchedule in interface CronEntry
        Returns:
        the text from the <schedule> element in cron.xml
      • getTimezone

        public String getTimezone()
        Description copied from interface: CronEntry
        Returns the timezone of this cron entry.
        Specified by:
        getTimezone in interface CronEntry
        Returns:
        the text from the <schedule> element in cron.xml, or "UTC" as the default value if none was explicitly supplied.
      • getUrl

        public String getUrl()
        Description copied from interface: CronEntry
        Returns the application URL invoked by this cron entry.
        Specified by:
        getUrl in interface CronEntry
        Returns:
        the URL from the <url> element in cron.xml