Utilities when working with cron entry expressions.
More...
Utilities when working with cron entry expressions.
- Author
- Anders Henja
◆ CronEntryUtilities()
eu.baltrad.beast.scheduler.CronEntryUtilities.CronEntryUtilities |
( |
| ) |
|
|
inline |
◆ createBasePattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createBasePattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a base expression from a list of values or intervals.
I.e. it is allowed to specify a sequence like 3,5,*/2 which would mean every second value and also value 3 and 5. Only allowed characters are 0-9 - * and /. I.e. separator character , is not allowed since it will be used to concatenate the strings.
- Parameters
-
- Returns
- the string pattern
◆ createDayOfMonthPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createDayOfMonthPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a day of month pattern.
- Parameters
-
values | the day of month patterns |
- Returns
- the day of month pattern
◆ createDayOfWeekPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createDayOfWeekPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a day of week pattern.
- Parameters
-
values | the day of week patterns |
- Returns
- the day of week pattern
◆ createExpression()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createExpression |
( |
List< String > | seconds, |
|
|
List< String > | minutes, |
|
|
List< String > | hours, |
|
|
List< String > | daysOfMonth, |
|
|
List< String > | months, |
|
|
List< String > | daysOfWeek ) |
|
inline |
Creates a cron expression from provided entries.
- Parameters
-
seconds | the second patterns |
minutes | the minute patterns |
hours | the hour patterns |
daysOfMonth | the day of month patterns |
months | the month patterns |
daysOfWeek | the day of week patterns |
- Returns
- a cron expression
◆ createHourPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createHourPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a hour pattern.
- Parameters
-
- Returns
- the hour pattern
◆ createMinutePattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createMinutePattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a minute pattern.
- Parameters
-
- Returns
- the minute pattern
◆ createMonthPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createMonthPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a month pattern.
- Parameters
-
- Returns
- the month pattern
◆ createSecondPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createSecondPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a second pattern.
- Parameters
-
- Returns
- the second pattern
◆ createYearPattern()
String eu.baltrad.beast.scheduler.CronEntryUtilities.createYearPattern |
( |
List< String > | values | ) |
|
|
inline |
Creates a year pattern.
- Parameters
-
- Returns
- the year pattern
◆ parseAllInExpression()
List< String >[] eu.baltrad.beast.scheduler.CronEntryUtilities.parseAllInExpression |
( |
String | expression | ) |
|
|
inline |
Extracts all individual entries for all fields in a cron expression.
- Parameters
-
expression | the cron expression |
- Returns
- an array of entries
◆ parseBasePattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseBasePattern |
( |
String | value | ) |
|
|
inline |
Parses a base pattern into it's separate parts, i.e.
splits by comma.
- Parameters
-
- Returns
- an array of individual values
◆ parseDayOfMonthPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseDayOfMonthPattern |
( |
String | value | ) |
|
|
inline |
Parses a day of month pattern.
- Parameters
-
value | the day of month pattern |
- Returns
- an array of individual day of month patterns
◆ parseDayOfWeekPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseDayOfWeekPattern |
( |
String | value | ) |
|
|
inline |
Parses a day of week pattern.
- Parameters
-
value | the day of week pattern |
- Returns
- an array of individual day of week patterns
◆ parseHourPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseHourPattern |
( |
String | value | ) |
|
|
inline |
Parses a hour pattern.
- Parameters
-
- Returns
- an array of individual hour patterns
◆ parseMinutePattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseMinutePattern |
( |
String | value | ) |
|
|
inline |
Parses a minute pattern.
- Parameters
-
- Returns
- an array of individual minute patterns
◆ parseMonthPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseMonthPattern |
( |
String | value | ) |
|
|
inline |
Parses a month pattern.
- Parameters
-
- Returns
- an array of individual month patterns
◆ parseSecondPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseSecondPattern |
( |
String | value | ) |
|
|
inline |
Parses a second pattern.
- Parameters
-
- Returns
- an array of individual second patterns
◆ parseYearPattern()
List< String > eu.baltrad.beast.scheduler.CronEntryUtilities.parseYearPattern |
( |
String | value | ) |
|
|
inline |
Parses a year pattern.
- Parameters
-
- Returns
- an array of individual year patterns
◆ validateExpression()
static void eu.baltrad.beast.scheduler.CronEntryUtilities.validateExpression |
( |
String | expression | ) |
|
|
inlinestatic |
Validates that an expression is valid.
- Parameters
-
expression | the expression to validate |
- Exceptions
-
◆ DAYSOFMONTH_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.DAYSOFMONTH_INDEX = 3 |
|
static |
◆ DAYSOFWEEK_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.DAYSOFWEEK_INDEX = 5 |
|
static |
◆ HOURS_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.HOURS_INDEX = 2 |
|
static |
◆ MINUTES_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.MINUTES_INDEX = 1 |
|
static |
◆ MONTHS_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.MONTHS_INDEX = 4 |
|
static |
◆ SECONDS_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.SECONDS_INDEX = 0 |
|
static |
◆ YEARS_INDEX
final int eu.baltrad.beast.scheduler.CronEntryUtilities.YEARS_INDEX = 6 |
|
static |
The documentation for this class was generated from the following file:
- src/eu/baltrad/beast/scheduler/CronEntryUtilities.java