public class Schedule extends Object
| Modifier and Type | Field and Description |
|---|---|
static org.springframework.web.util.UriTemplate |
TEMPLATE |
static String |
URI |
| Constructor and Description |
|---|
Schedule(DataloadProcess process,
String executable,
Schedule triggerSchedule)
Creates schedule, which is triggered by execution of different schedule
|
Schedule(DataloadProcess process,
String executable,
String cron) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParam(String key,
String value) |
int |
getConsecutiveFailedExecutionCount() |
String |
getCron() |
String |
getExecutable() |
String |
getExecutionsUri() |
String |
getId() |
String |
getName() |
org.joda.time.DateTime |
getNextExecutionTime() |
Map<String,String> |
getParams() |
String |
getProcessId() |
org.joda.time.Duration |
getReschedule()
Duration after a failed execution of the schedule is executed again
|
Integer |
getRescheduleInMinutes()
Duration after a failed execution of the schedule is executed again
|
String |
getState() |
String |
getTimezone() |
String |
getTriggerScheduleId() |
String |
getType() |
String |
getUri() |
boolean |
isEnabled() |
void |
removeParam(String paramKey) |
void |
setCron(String cron) |
void |
setExecutable(DataloadProcess process,
String executable) |
void |
setName(String name) |
void |
setProcessId(DataloadProcess process) |
void |
setReschedule(org.joda.time.Duration reschedule)
Duration after a failed execution of the schedule is executed again
|
void |
setState(ScheduleState state) |
void |
setState(String state) |
void |
setTimezone(org.joda.time.DateTimeZone timezone) |
void |
setTimezone(String timezone) |
void |
setTriggerScheduleId(String triggerScheduleId) |
String |
toString() |
public static final String URI
public static final org.springframework.web.util.UriTemplate TEMPLATE
public Schedule(DataloadProcess process, String executable, String cron)
public Schedule(DataloadProcess process, String executable, Schedule triggerSchedule)
process - process to create schedule forexecutable - executable to be scheduled for executiontriggerSchedule - schedule, which will trigger created schedulepublic String getType()
public String getState()
public void setState(String state)
public void setState(ScheduleState state)
public boolean isEnabled()
public String getProcessId()
public void setProcessId(DataloadProcess process)
public String getExecutable()
public void setExecutable(DataloadProcess process, String executable)
public void removeParam(String paramKey)
public String getCron()
public void setCron(String cron)
public String getTimezone()
public void setTimezone(String timezone)
public Integer getRescheduleInMinutes()
public org.joda.time.Duration getReschedule()
public void setReschedule(org.joda.time.Duration reschedule)
reschedule - this duration should not be too low, because it can be rejected by REST API (e.g. 15 minutes or more)public String getTriggerScheduleId()
public void setTriggerScheduleId(String triggerScheduleId)
public String getName()
public void setName(String name)
public void setTimezone(org.joda.time.DateTimeZone timezone)
public org.joda.time.DateTime getNextExecutionTime()
public int getConsecutiveFailedExecutionCount()
public String getUri()
public String getId()
public String getExecutionsUri()
Copyright © 2017. All rights reserved.