Class Schedule

java.lang.Object
com.swiftmq.impl.scheduler.standard.Schedule
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AtSchedule

public abstract class Schedule extends Object implements Serializable
See Also:
  • Constructor Details

    • Schedule

      public Schedule(String name, boolean enabled, boolean loggingEnabled, String jobGroup, String jobName, String calendar, String dateFrom, String dateTo, long maxRuntime, String timeExpression)
  • Method Details

    • getName

      public String getName()
    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • isLoggingEnabled

      public boolean isLoggingEnabled()
    • setLoggingEnabled

      public void setLoggingEnabled(boolean loggingEnabled)
    • getCalendar

      public String getCalendar()
    • setCalendar

      public void setCalendar(String calendar)
    • getJobGroup

      public String getJobGroup()
    • getJobName

      public String getJobName()
    • getDateFrom

      public String getDateFrom()
    • setDateFrom

      public void setDateFrom(String dateFrom)
    • getDateTo

      public String getDateTo()
    • setDateTo

      public void setDateTo(String dateTo)
    • getMaxRuntime

      public long getMaxRuntime()
    • setMaxRuntime

      public void setMaxRuntime(long maxRuntime)
    • getTimeExpression

      public String getTimeExpression()
    • getParameters

      public Map getParameters()
    • createCopy

      public Schedule createCopy() throws Exception
      Throws:
      Exception
    • getTimeOfTheDay

      protected int getTimeOfTheDay(Calendar cal)
    • isApplySystemTimeChange

      protected abstract boolean isApplySystemTimeChange()
    • getNextStart

      protected abstract int getNextStart(int lastStartTime, Calendar cal)
    • getNextJobStart

      public JobStart getNextJobStart(int lastStartTime, Calendar cal, Map calendars) throws Exception
      Throws:
      Exception
    • hasCalendarRef

      public boolean hasCalendarRef(String calendarName, Map calendars)
    • toString

      public String toString()
      Overrides:
      toString in class Object