public class ScheduleModel extends Object implements Serializable
Constructor and Description |
---|
ScheduleModel() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getActive()
True for internal tasks, false for external tasks
|
int |
getAverageTime()
Get the average runtime of this schedules executions.
|
int |
getCdate()
Task creation timestamp
|
User |
getCreator()
Task creator
|
String |
getDescription()
Task description
|
int |
getEdate()
Last task edit timestamp
|
User |
getEditor()
Last task editor
|
Integer |
getId()
Task ID
|
ExecutionModel |
getLastExecution()
Get the data for the last execution if any.
|
String |
getName()
Task name
|
List<String> |
getNotificationEmail()
Get the notification email addresses.
|
Boolean |
getParallel()
When
true the schedule can be executed at the same time as other
parallel schedules. |
int |
getRuns()
Get the number of executions for this schedule.
|
ScheduleData |
getScheduleData()
Get the schedule data
|
ScheduleStatus |
getStatus()
Get the current status of the schedule.
|
Integer |
getTaskId()
ID of the executed task
|
ScheduleModel |
setActive(Boolean active)
Set the active flag
|
ScheduleModel |
setAverageTime(int averageTime)
Set the average runtime of this schedules executions.
|
ScheduleModel |
setCdate(int cdate)
Set the creation timestamp
|
ScheduleModel |
setCreator(User creator)
Set the creator
|
ScheduleModel |
setDescription(String description)
Set the description
|
ScheduleModel |
setEdate(int edate)
Set the edit timestamp
|
ScheduleModel |
setEditor(User editor)
Set the editor
|
ScheduleModel |
setId(Integer id)
Set the ID
|
ScheduleModel |
setLastExecution(ExecutionModel lastExecution)
Set the data for the last execution.
|
ScheduleModel |
setName(String name)
Set the name
|
ScheduleModel |
setNotificationEmail(List<String> notificationEmail)
Set the notification email addresses.
|
ScheduleModel |
setParallel(Boolean parallel)
Set the parallel flag.
|
ScheduleModel |
setRuns(int runs)
Set the number of executions for this schedule.
|
ScheduleModel |
setScheduleData(ScheduleData scheduleData)
Set schedule data
|
ScheduleModel |
setStatus(ScheduleStatus status)
Set the current status of the schedule.
|
ScheduleModel |
setTaskId(Integer taskId)
Set the ID of the executed task
|
public Integer getId()
public ScheduleModel setId(Integer id)
id
- IDpublic String getName()
public ScheduleModel setName(String name)
name
- namepublic String getDescription()
public ScheduleModel setDescription(String description)
description
- descriptionpublic Integer getTaskId()
public ScheduleModel setTaskId(Integer taskId)
taskId
- task IDpublic ScheduleData getScheduleData()
public ScheduleModel setScheduleData(ScheduleData scheduleData)
scheduleData
- datapublic Boolean getParallel()
true
the schedule can be executed at the same time as other
parallel schedules.public ScheduleModel setParallel(Boolean parallel)
parallel
- parallel flagpublic Boolean getActive()
public ScheduleModel setActive(Boolean active)
active
- flagpublic ScheduleStatus getStatus()
public ScheduleModel setStatus(ScheduleStatus status)
status
- The current status of the schedule.public List<String> getNotificationEmail()
public ScheduleModel setNotificationEmail(List<String> notificationEmail)
notificationEmail
- Notification email addressespublic int getRuns()
public ScheduleModel setRuns(int runs)
runs
- The number of executions for this schedule.public int getAverageTime()
public ScheduleModel setAverageTime(int averageTime)
averageTime
- The average runtime of this schedules executions.public ExecutionModel getLastExecution()
public ScheduleModel setLastExecution(ExecutionModel lastExecution)
lastExecution
- The data for the last execution.public User getCreator()
public ScheduleModel setCreator(User creator)
creator
- creatorpublic int getCdate()
public ScheduleModel setCdate(int cdate)
cdate
- timestamppublic User getEditor()
public ScheduleModel setEditor(User editor)
editor
- editorpublic int getEdate()
public ScheduleModel setEdate(int edate)
edate
- timestampCopyright © 2024 Gentics Software. All rights reserved.