Package com.google.appengine.tools.admin
Class CronEntryImpl
- java.lang.Object
-
- com.google.appengine.tools.admin.CronEntryImpl
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classCronEntryImpl.TimeIteratorAn iterator tracking the last execution time, and the groc time specification object to compute future execution times.
-
Constructor Summary
Constructors Constructor Description CronEntryImpl(String url, String description, String schedule, String tz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns the human-readable description of this cron entry.Iterator<String>getNextTimesIterator()Returns an iterator over upcoming execution times.StringgetSchedule()Returns the schedule of this cron entry.StringgetTimezone()Returns the timezone of this cron entry.StringgetUrl()Returns the application URL invoked by this cron entry.StringtoXml()
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:CronEntryReturns the human-readable description of this cron entry.- Specified by:
getDescriptionin interfaceCronEntry- Returns:
- the text from the
<description>element in cron.xml, ornullif none was supplied.
-
getNextTimesIterator
public Iterator<String> getNextTimesIterator()
Description copied from interface:CronEntryReturns 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:
getNextTimesIteratorin interfaceCronEntry- Returns:
- a new iterator which can be queried for future execution times.
-
getSchedule
public String getSchedule()
Description copied from interface:CronEntryReturns the schedule of this cron entry.- Specified by:
getSchedulein interfaceCronEntry- Returns:
- the text from the
<schedule>element in cron.xml
-
getTimezone
public String getTimezone()
Description copied from interface:CronEntryReturns the timezone of this cron entry.- Specified by:
getTimezonein interfaceCronEntry- 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:CronEntryReturns the application URL invoked by this cron entry.
-
-