Class ScheduleInfoImpl
- java.lang.Object
-
- org.apache.sling.event.impl.support.ScheduleInfoImpl
-
- All Implemented Interfaces:
Serializable,org.apache.sling.event.jobs.ScheduleInfo
public class ScheduleInfoImpl extends Object implements org.apache.sling.event.jobs.ScheduleInfo, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringEVENTING_THREADPOOL_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScheduleInfoImplAT(Date at)voidcheck(List<String> errors)static ScheduleInfoImplCRON(String expr)static ScheduleInfoImplDAILY(int hour, int minute)static ScheduleInfoImpldeserialize(String s)static ScheduleInfoImpldeserialize(org.apache.sling.event.jobs.ScheduleInfo.ScheduleType scheduleType, String s)DategetAt()StringgetCronExpression()If the job is scheduled daily or weekly, return the cron expressionintgetDayOfMonth()intgetDayOfWeek()StringgetExpression()intgetHourOfDay()intgetMinuteOfHour()intgetMonthOfYear()DategetNextScheduledExecution()StringgetSerializedString()org.apache.sling.event.jobs.ScheduleInfo.ScheduleTypegetType()static ScheduleInfoImplHOURLY(int minutes)static ScheduleInfoImplMONTHLY(int day, int hour, int minute)StringtoString()static ScheduleInfoImplWEEKLY(int day, int hour, int minute)static ScheduleInfoImplYEARLY(int month, int day, int hour, int minute)
-
-
-
Field Detail
-
EVENTING_THREADPOOL_NAME
public static final String EVENTING_THREADPOOL_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
HOURLY
public static ScheduleInfoImpl HOURLY(int minutes)
-
CRON
public static ScheduleInfoImpl CRON(String expr)
-
AT
public static ScheduleInfoImpl AT(Date at)
-
YEARLY
public static ScheduleInfoImpl YEARLY(int month, int day, int hour, int minute)
-
MONTHLY
public static ScheduleInfoImpl MONTHLY(int day, int hour, int minute)
-
WEEKLY
public static ScheduleInfoImpl WEEKLY(int day, int hour, int minute)
-
DAILY
public static ScheduleInfoImpl DAILY(int hour, int minute)
-
deserialize
public static ScheduleInfoImpl deserialize(org.apache.sling.event.jobs.ScheduleInfo.ScheduleType scheduleType, String s)
-
deserialize
public static ScheduleInfoImpl deserialize(String s)
-
getSerializedString
public String getSerializedString()
-
getType
public org.apache.sling.event.jobs.ScheduleInfo.ScheduleType getType()
- Specified by:
getTypein interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getAt
public Date getAt()
- Specified by:
getAtin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getDayOfWeek
public int getDayOfWeek()
- Specified by:
getDayOfWeekin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getHourOfDay
public int getHourOfDay()
- Specified by:
getHourOfDayin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getMinuteOfHour
public int getMinuteOfHour()
- Specified by:
getMinuteOfHourin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getExpression
public String getExpression()
- Specified by:
getExpressionin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getMonthOfYear
public int getMonthOfYear()
- Specified by:
getMonthOfYearin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getDayOfMonth
public int getDayOfMonth()
- Specified by:
getDayOfMonthin interfaceorg.apache.sling.event.jobs.ScheduleInfo
-
getNextScheduledExecution
public Date getNextScheduledExecution()
-
getCronExpression
public String getCronExpression()
If the job is scheduled daily or weekly, return the cron expression
-
-