Package hudson.scheduler
Class CronTabList
java.lang.Object
hudson.scheduler.CronTabList
CronTab
list (logically OR-ed).- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the given calendar matchesChecks if this crontab entry looks reasonable, and if not, return an warning message.static CronTabList
static CronTabList
static String
getValidTimezone
(String timezone) Checks if given timezone string is supported by TimeZone and returns the same string if valid, null otherwisenext()
previous()
-
Constructor Details
-
CronTabList
-
-
Method Details
-
check
Returns true if the given calendar matches -
checkSanity
Checks if this crontab entry looks reasonable, and if not, return an warning message.The point of this method is to catch syntactically correct but semantically suspicious combinations, like "* 0 * * *"
-
getValidTimezone
Checks if given timezone string is supported by TimeZone and returns the same string if valid, null otherwise- Since:
- 1.615
-
create
- Parameters:
format
- the crontab entry to be parsed- Throws:
IllegalArgumentException
- if the crontab entry cannot be parsed
-
create
- Parameters:
format
- the crontab entry to be parsed- Throws:
IllegalArgumentException
- if the crontab entry cannot be parsed
-
previous
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Calendar previous() -
next
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @CheckForNull public Calendar next()
-