org.quartz.impl.calendar
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary |
|---|
| Fields inherited from interface org.quartz.Calendar |
|---|
MONTH |
| Constructor Summary | |
|---|---|
CronCalendar(Calendar baseCalendar,
String expression)
Create a CronCalendar with the given cron expression and
baseCalendar. |
|
CronCalendar(Calendar baseCalendar,
String expression,
TimeZone timeZone)
Create a CronCalendar with the given cron exprssion,
baseCalendar, and TimeZone. |
|
CronCalendar(String expression)
Create a CronCalendar with the given cron expression and no
baseCalendar. |
|
CronCalendar(String name,
Calendar baseCalendar,
String expression)
Deprecated. The use of name is no longer supported. |
|
CronCalendar(String name,
Calendar baseCalendar,
String expression,
TimeZone timeZone)
Deprecated. The use of name is no longer supported. |
|
CronCalendar(String name,
String expression)
Deprecated. The use of name is no longer supported. |
|
| Method Summary | |
|---|---|
CronExpression |
getCronExpression()
Returns the object representation of the cron expression that defines the dates and times this calendar excludes. |
String |
getName()
Deprecated. The use of name is no longer supported. |
long |
getNextIncludedTime(long timeInMillis)
Determines the next time included by the CronCalendar
after the specified time. |
TimeZone |
getTimeZone()
Returns the time zone for which the CronExpression of
this CronCalendar will be resolved. |
boolean |
isTimeIncluded(long timeInMillis)
Determines whether the given time (in milliseconds) is 'included' by the BaseCalendar |
void |
setCronExpression(CronExpression expression)
Sets the cron expression for the calendar to a new value |
void |
setCronExpression(String expression)
Sets the cron expression for the calendar to a new value |
void |
setTimeZone(TimeZone timeZone)
Sets the time zone for which the CronExpression of this
CronCalendar will be resolved. |
String |
toString()
Returns a string representing the properties of the CronCalendar |
| Methods inherited from class org.quartz.impl.calendar.BaseCalendar |
|---|
buildHoliday, buildHoliday, createJavaCalendar, createJavaCalendar, getBaseCalendar, getDescription, getEndOfDayJavaCalendar, getJavaCalendar, getStartOfDayJavaCalendar, setBaseCalendar, setDescription |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CronCalendar(String expression) throws ParseException
CronCalendar with the given cron expression and no
baseCalendar.
expression - a String representation of the desired cron expression
ParseExceptionpublic CronCalendar(Calendar baseCalendar, String expression) throws ParseException
CronCalendar with the given cron expression and
baseCalendar.
baseCalendar - the base calendar for this calendar instance –
see BaseCalendar for more information on base
calendar functionalityexpression - a String representation of the desired cron expression
ParseExceptionpublic CronCalendar(Calendar baseCalendar, String expression, TimeZone timeZone) throws ParseException
CronCalendar with the given cron exprssion,
baseCalendar, and TimeZone.
baseCalendar - the base calendar for this calendar instance –
see BaseCalendar for more information on base
calendar functionalityexpression - a String representation of the desired cron expressiontimeZone - Specifies for which time zone the expression
should be interpreted, i.e. the expression 0 0 10 * * ?, is
resolved to 10:00 am in this time zone. If
timeZone is null then
TimeZone.getDefault() will be used.
ParseExceptionpublic CronCalendar(String name, String expression) throws ParseException
name is no longer supported.
ParseExceptionCronCalendar(String)public CronCalendar(String name, Calendar baseCalendar, String expression) throws ParseException
name is no longer supported.
ParseExceptionCronCalendar(Calendar, String)public CronCalendar(String name, Calendar baseCalendar, String expression, TimeZone timeZone) throws ParseException
name is no longer supported.
ParseExceptionCronCalendar(Calendar, String, TimeZone)| Method Detail |
|---|
public TimeZone getTimeZone()
CronExpression of
this CronCalendar will be resolved.
Overrides to
defer to its BaseCalendar.getTimeZone()CronExpression.
getTimeZone in class BaseCalendarnull if Calendar should
use the TimeZone.getDefault()public void setTimeZone(TimeZone timeZone)
CronExpression of this
CronCalendar will be resolved. If timeZone
is null then TimeZone.getDefault() will be
used.
Overrides to
defer to its BaseCalendar.setTimeZone(TimeZone)CronExpression.
setTimeZone in class BaseCalendartimeZone - The time zone to use for this Calendar, null
if TimeZone.getDefault() should be usedpublic String getName()
name is no longer supported.
CronCalendar
CronCalendarpublic boolean isTimeIncluded(long timeInMillis)
BaseCalendar
isTimeIncluded in interface CalendarisTimeIncluded in class BaseCalendartimeInMillis - the date/time to test
CronCalendarCalendar.isTimeIncluded(long)public long getNextIncludedTime(long timeInMillis)
CronCalendar
after the specified time.
getNextIncludedTime in interface CalendargetNextIncludedTime in class BaseCalendartimeInMillis - the initial date/time after which to find an
included time
Calendar.getNextIncludedTime(long)public String toString()
CronCalendar
public CronExpression getCronExpression()
CronExpressionpublic void setCronExpression(String expression) throws ParseException
expression - the new string value to build a cron expression from
ParseException - if the string expression cannot be parsedpublic void setCronExpression(CronExpression expression)
expression - the new cron expression
|
Quartz Enterprise Job Scheduler Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||