Package com.gooddata.dataload.processes
Class Schedule
- java.lang.Object
-
- com.gooddata.dataload.processes.Schedule
-
public class Schedule extends Object
Schedule.
-
-
Constructor Summary
Constructors Constructor Description Schedule(DataloadProcess process, String executable, Schedule triggerSchedule)Creates schedule, which is triggered by execution of different scheduleSchedule(DataloadProcess process, String executable, String cron)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParam(String key, String value)intgetConsecutiveFailedExecutionCount()StringgetCron()StringgetExecutable()StringgetExecutionsUri()StringgetId()StringgetName()org.joda.time.DateTimegetNextExecutionTime()Map<String,String>getParams()StringgetProcessId()org.joda.time.DurationgetReschedule()Duration after a failed execution of the schedule is executed againIntegergetRescheduleInMinutes()Duration after a failed execution of the schedule is executed againStringgetState()StringgetTimezone()StringgetTriggerScheduleId()StringgetType()StringgetUri()booleanisEnabled()voidremoveParam(String paramKey)voidsetCron(String cron)voidsetExecutable(DataloadProcess process, String executable)voidsetName(String name)voidsetProcessId(DataloadProcess process)voidsetReschedule(org.joda.time.Duration reschedule)Duration after a failed execution of the schedule is executed againvoidsetState(ScheduleState state)voidsetState(String state)voidsetTimezone(String timezone)voidsetTimezone(org.joda.time.DateTimeZone timezone)voidsetTriggerScheduleId(String triggerScheduleId)StringtoString()
-
-
-
Field Detail
-
URI
public static final String URI
- See Also:
- Constant Field Values
-
TEMPLATE
public static final org.springframework.web.util.UriTemplate TEMPLATE
-
-
Constructor Detail
-
Schedule
public Schedule(DataloadProcess process, String executable, String cron)
-
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 forexecutable- executable to be scheduled for executiontriggerSchedule- schedule, which will trigger created schedule
-
-
Method Detail
-
getType
public String getType()
-
getState
public String getState()
-
setState
public void setState(String state)
-
setState
public void setState(ScheduleState state)
-
isEnabled
public boolean isEnabled()
-
getProcessId
public String getProcessId()
-
setProcessId
public void setProcessId(DataloadProcess process)
-
getExecutable
public String getExecutable()
-
setExecutable
public void setExecutable(DataloadProcess process, String executable)
-
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()
-
-