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:
  • Field Details

  • Method Details

    • 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:
      getType in interface org.apache.sling.event.jobs.ScheduleInfo
    • getAt

      public Date getAt()
      Specified by:
      getAt in interface org.apache.sling.event.jobs.ScheduleInfo
    • getDayOfWeek

      public int getDayOfWeek()
      Specified by:
      getDayOfWeek in interface org.apache.sling.event.jobs.ScheduleInfo
    • getHourOfDay

      public int getHourOfDay()
      Specified by:
      getHourOfDay in interface org.apache.sling.event.jobs.ScheduleInfo
    • getMinuteOfHour

      public int getMinuteOfHour()
      Specified by:
      getMinuteOfHour in interface org.apache.sling.event.jobs.ScheduleInfo
    • getExpression

      public String getExpression()
      Specified by:
      getExpression in interface org.apache.sling.event.jobs.ScheduleInfo
    • getMonthOfYear

      public int getMonthOfYear()
      Specified by:
      getMonthOfYear in interface org.apache.sling.event.jobs.ScheduleInfo
    • getDayOfMonth

      public int getDayOfMonth()
      Specified by:
      getDayOfMonth in interface org.apache.sling.event.jobs.ScheduleInfo
    • check

      public void check(List<String> errors)
    • getNextScheduledExecution

      public Date getNextScheduledExecution()
    • getCronExpression

      public String getCronExpression()
      If the job is scheduled daily or weekly, return the cron expression
    • toString

      public String toString()
      Overrides:
      toString in class Object