public class ScheduleInfoImpl extends Object implements ScheduleInfo, Serializable
ScheduleInfo.ScheduleType
Modifier and Type | Method and Description |
---|---|
static ScheduleInfoImpl |
AT(Date at) |
void |
check(List<String> errors) |
static ScheduleInfoImpl |
CRON(String expr) |
static ScheduleInfoImpl |
DAILY(int hour,
int minute) |
static ScheduleInfoImpl |
deserialize(ScheduleInfo.ScheduleType scheduleType,
String s) |
static ScheduleInfoImpl |
deserialize(String s) |
Date |
getAt()
Return the scheduled execution date for a schedule of type date.
|
String |
getCronExpression()
If the job is scheduled daily or weekly, return the cron expression
|
int |
getDayOfMonth()
If the job is scheduled monthly, returns the day of the month
|
int |
getDayOfWeek()
If the job is scheduled weekly, returns the day of the week
|
String |
getExpression()
If the schedule is a cron expression, return the expression.
|
int |
getHourOfDay()
Return the hour of the day for daily and weekly scheduled jobs
|
int |
getMinuteOfHour()
Return the minute of the hour for daily, weekly and hourly scheduled jobs.
|
int |
getMonthOfYear()
If the job is scheduled yearly, returns the month of the year
|
Date |
getNextScheduledExecution() |
String |
getSerializedString() |
ScheduleInfo.ScheduleType |
getType()
Return the scheduling type
|
static ScheduleInfoImpl |
HOURLY(int minutes) |
static ScheduleInfoImpl |
MONTHLY(int day,
int hour,
int minute) |
String |
toString() |
static ScheduleInfoImpl |
WEEKLY(int day,
int hour,
int minute) |
static ScheduleInfoImpl |
YEARLY(int month,
int day,
int hour,
int minute) |
public static ScheduleInfoImpl HOURLY(int minutes)
public static ScheduleInfoImpl CRON(String expr)
public static ScheduleInfoImpl AT(Date at)
public static ScheduleInfoImpl YEARLY(int month, int day, int hour, int minute)
public static ScheduleInfoImpl MONTHLY(int day, int hour, int minute)
public static ScheduleInfoImpl WEEKLY(int day, int hour, int minute)
public static ScheduleInfoImpl DAILY(int hour, int minute)
public static ScheduleInfoImpl deserialize(ScheduleInfo.ScheduleType scheduleType, String s)
public static ScheduleInfoImpl deserialize(String s)
public String getSerializedString()
public ScheduleInfo.ScheduleType getType()
ScheduleInfo
getType
in interface ScheduleInfo
public Date getAt()
ScheduleInfo
getAt
in interface ScheduleInfo
public int getDayOfWeek()
ScheduleInfo
getDayOfWeek
in interface ScheduleInfo
public int getHourOfDay()
ScheduleInfo
getHourOfDay
in interface ScheduleInfo
public int getMinuteOfHour()
ScheduleInfo
getMinuteOfHour
in interface ScheduleInfo
public String getExpression()
ScheduleInfo
getExpression
in interface ScheduleInfo
null
public int getMonthOfYear()
ScheduleInfo
getMonthOfYear
in interface ScheduleInfo
public int getDayOfMonth()
ScheduleInfo
getDayOfMonth
in interface ScheduleInfo
public Date getNextScheduledExecution()
public String getCronExpression()
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.