Class CronTabList

java.lang.Object
hudson.scheduler.CronTabList

public final class CronTabList extends Object
CronTab list (logically OR-ed).
Author:
Kohsuke Kawaguchi
  • Constructor Details

  • Method Details

    • check

      public boolean check(Calendar cal)
      Returns true if the given calendar matches
    • checkSanity

      public String 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

      @CheckForNull public static String getValidTimezone(String timezone)
      Checks if given timezone string is supported by TimeZone and returns the same string if valid, null otherwise
      Since:
      1.615
    • create

      public static CronTabList create(@NonNull String format)
      Parameters:
      format - the crontab entry to be parsed
      Throws:
      IllegalArgumentException - if the crontab entry cannot be parsed
    • create

      public static CronTabList create(@NonNull String format, Hash hash)
      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()