hudson.scheduler
Class CronTabList

java.lang.Object
  extended by hudson.scheduler.CronTabList

public final class CronTabList
extends Object

CronTab list (logically OR-ed).

Author:
Kohsuke Kawaguchi

Constructor Summary
CronTabList(Collection<CronTab> tabs)
           
 
Method Summary
 boolean check(Calendar cal)
          Returns true if the given calendar matches
 String checkSanity()
          Checks if this crontab entry looks reasonable, and if not, return an warning message.
static CronTabList create(String format)
           
static CronTabList create(String format, Hash hash)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CronTabList

public CronTabList(Collection<CronTab> tabs)
Method Detail

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 * * *"


create

public static CronTabList create(String format)
                          throws antlr.ANTLRException
Throws:
antlr.ANTLRException

create

public static CronTabList create(String format,
                                 Hash hash)
                          throws antlr.ANTLRException
Throws:
antlr.ANTLRException


Copyright © 2004-2013. All Rights Reserved.