Class Schedule


  • public class Schedule
    extends Object
    Schedule.
    • Field Detail

      • TEMPLATE

        public static final org.springframework.web.util.UriTemplate TEMPLATE
    • Constructor Detail

      • Schedule

        public Schedule​(DataloadProcess process,
                        String executable,
                        Schedule triggerSchedule)
        Creates schedule, which is triggered by execution of different schedule
        Parameters:
        process - process to create schedule for
        executable - executable to be scheduled for execution
        triggerSchedule - schedule, which will trigger created schedule
    • Method Detail

      • getType

        public String getType()
      • getState

        public String getState()
      • setState

        public void setState​(String state)
      • isEnabled

        public boolean isEnabled()
      • getProcessId

        public String getProcessId()
      • getExecutable

        public String getExecutable()
      • addParam

        public void addParam​(String key,
                             String value)
      • removeParam

        public void removeParam​(String paramKey)
      • getCron

        public String getCron()
      • setCron

        public void setCron​(String cron)
      • getTimezone

        public String getTimezone()
      • setTimezone

        public void setTimezone​(String timezone)
      • getRescheduleInMinutes

        public Integer getRescheduleInMinutes()
        Duration after a failed execution of the schedule is executed again
        Returns:
        reschedule duration in minutes
      • getReschedule

        public org.joda.time.Duration getReschedule()
        Duration after a failed execution of the schedule is executed again
        Returns:
        reschedule duration in minutes
      • setReschedule

        public void setReschedule​(org.joda.time.Duration reschedule)
        Duration after a failed execution of the schedule is executed again
        Parameters:
        reschedule - this duration should not be too low, because it can be rejected by REST API (e.g. 15 minutes or more)
      • getTriggerScheduleId

        public String getTriggerScheduleId()
      • setTriggerScheduleId

        public void setTriggerScheduleId​(String triggerScheduleId)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • setTimezone

        public void setTimezone​(org.joda.time.DateTimeZone timezone)
      • getNextExecutionTime

        public org.joda.time.DateTime getNextExecutionTime()
      • getConsecutiveFailedExecutionCount

        public int getConsecutiveFailedExecutionCount()
      • getUri

        public String getUri()
      • getId

        public String getId()
      • getExecutionsUri

        public String getExecutionsUri()