Class Schedule
java.lang.Object
com.gooddata.sdk.model.dataload.processes.Schedule
Schedule.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSchedule(DataloadProcess process, String executable, Schedule triggerSchedule) Creates schedule, which is triggered by execution of different scheduleSchedule(DataloadProcess process, String executable, String cron) -
Method Summary
Modifier and TypeMethodDescriptionvoidintgetCron()getId()getName()Duration after a failed execution of the schedule is executed againDuration after a failed execution of the schedule is executed againgetState()getType()getUri()booleanvoidremoveParam(String paramKey) voidvoidsetExecutable(DataloadProcess process, String executable) voidvoidsetProcessId(DataloadProcess process) voidsetReschedule(Duration reschedule) Duration after a failed execution of the schedule is executed againvoidsetState(ScheduleState state) voidvoidsetTimezone(String timezone) voidsetTimezone(ZonedDateTime timezone) voidsetTriggerScheduleId(String triggerScheduleId) toString()
-
Field Details
-
URI
- See Also:
-
-
Constructor Details
-
Schedule
-
Schedule
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 Details
-
getType
-
getState
-
setState
-
setState
-
isEnabled
public boolean isEnabled() -
getProcessId
-
setProcessId
-
getExecutable
-
setExecutable
-
getParams
-
addParam
-
removeParam
-
getCron
-
setCron
-
getTimezone
-
setTimezone
-
getRescheduleInMinutes
Duration after a failed execution of the schedule is executed again- Returns:
- reschedule duration in minutes
-
getReschedule
Duration after a failed execution of the schedule is executed again- Returns:
- reschedule duration in minutes
-
setReschedule
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
-
setTriggerScheduleId
-
getName
-
setName
-
setTimezone
-
getNextExecutionTime
-
getConsecutiveFailedExecutionCount
public int getConsecutiveFailedExecutionCount() -
getUri
-
getId
-
getExecutionsUri
-
toString
-