Package com.netscape.cmscore.jobs
Class CronItem
- java.lang.Object
-
- com.netscape.cmscore.jobs.CronItem
-
public class CronItem extends java.lang.Object
class representing one Job cron itemhere, an "item" refers to one of the 5 fields in a cron string; "element" refers to any comma-deliminated element in an "item"...which includes both numbers and '-' separated ranges.
for each of the 5 cron fields, it's represented as a CronItem
- Version:
- $Revision$, $Date$
- Author:
- cfu
-
-
Constructor Summary
Constructors Constructor Description CronItem(int min, int max)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Vector<CronRange>
getElements()
get the vector stuffed with elements where each element is represented as CronRangevoid
set(java.lang.String sItem)
parses and sets a string cron item
-
-
-
Field Detail
-
logger
public static org.slf4j.Logger logger
-
ALL
protected static final java.lang.String ALL
- See Also:
- Constant Field Values
-
DELIM
protected static final java.lang.String DELIM
- See Also:
- Constant Field Values
-
RANGE
protected static final java.lang.String RANGE
- See Also:
- Constant Field Values
-
mElements
protected java.util.Vector<CronRange> mElements
-
-
Method Detail
-
set
public void set(java.lang.String sItem) throws EBaseException
parses and sets a string cron item- Parameters:
sItem
- the string representing an item of a cron string. item can be potentially comma separated with ranges specified with '-'s- Throws:
EBaseException
-
getElements
public java.util.Vector<CronRange> getElements()
get the vector stuffed with elements where each element is represented as CronRange- Returns:
- a vector of CronRanges
-
-