Class ScheduleModel
- java.lang.Object
-
- com.gentics.contentnode.rest.model.scheduler.ScheduleModel
-
- All Implemented Interfaces:
Serializable
public class ScheduleModel extends Object implements Serializable
Model for a scheduler schedule.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduleModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getActive()
True for internal tasks, false for external tasksint
getAverageTime()
Get the average runtime of this schedules executions.int
getCdate()
Task creation timestampUser
getCreator()
Task creatorString
getDescription()
Task descriptionint
getEdate()
Last task edit timestampUser
getEditor()
Last task editorInteger
getId()
Task IDExecutionModel
getLastExecution()
Get the data for the last execution if any.String
getName()
Task nameList<String>
getNotificationEmail()
Get the notification email addresses.Boolean
getParallel()
Whentrue
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 dataScheduleStatus
getStatus()
Get the current status of the schedule.TaskModel
getTask()
Get the task of the scheduleInteger
getTaskId()
ID of the executed taskScheduleModel
setActive(Boolean active)
Set the active flagScheduleModel
setAverageTime(int averageTime)
Set the average runtime of this schedules executions.ScheduleModel
setCdate(int cdate)
Set the creation timestampScheduleModel
setCreator(User creator)
Set the creatorScheduleModel
setDescription(String description)
Set the descriptionScheduleModel
setEdate(int edate)
Set the edit timestampScheduleModel
setEditor(User editor)
Set the editorScheduleModel
setId(Integer id)
Set the IDScheduleModel
setLastExecution(ExecutionModel lastExecution)
Set the data for the last execution.ScheduleModel
setName(String name)
Set the nameScheduleModel
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 dataScheduleModel
setStatus(ScheduleStatus status)
Set the current status of the schedule.ScheduleModel
setTask(TaskModel task)
Set the task of the scheduleScheduleModel
setTaskId(Integer taskId)
Set the ID of the executed task
-
-
-
Method Detail
-
getId
public Integer getId()
Task ID- Returns:
- ID
-
setId
public ScheduleModel setId(Integer id)
Set the ID- Parameters:
id
- ID- Returns:
- fluent API
-
getName
public String getName()
Task name- Returns:
- name
-
setName
public ScheduleModel setName(String name)
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
getDescription
public String getDescription()
Task description- Returns:
- description
-
setDescription
public ScheduleModel setDescription(String description)
Set the description- Parameters:
description
- description- Returns:
- fluent API
-
getTaskId
public Integer getTaskId()
ID of the executed task- Returns:
- task ID
-
setTaskId
public ScheduleModel setTaskId(Integer taskId)
Set the ID of the executed task- Parameters:
taskId
- task ID- Returns:
- fluent API
-
getTask
public TaskModel getTask()
Get the task of the schedule- Returns:
- task
-
setTask
public ScheduleModel setTask(TaskModel task)
Set the task of the schedule- Parameters:
task
- task- Returns:
- fluent API
-
getScheduleData
public ScheduleData getScheduleData()
Get the schedule data- Returns:
- schedule data
-
setScheduleData
public ScheduleModel setScheduleData(ScheduleData scheduleData)
Set schedule data- Parameters:
scheduleData
- data- Returns:
- fluent API
-
getParallel
public Boolean getParallel()
Whentrue
the schedule can be executed at the same time as other parallel schedules.- Returns:
- parallel flag
-
setParallel
public ScheduleModel setParallel(Boolean parallel)
Set the parallel flag.- Parameters:
parallel
- parallel flag- Returns:
- fluent API
-
getActive
public Boolean getActive()
True for internal tasks, false for external tasks- Returns:
- flag
-
setActive
public ScheduleModel setActive(Boolean active)
Set the active flag- Parameters:
active
- flag- Returns:
- fluent API
-
getStatus
public ScheduleStatus getStatus()
Get the current status of the schedule.- Returns:
- Get the current status of the schedule.
-
setStatus
public ScheduleModel setStatus(ScheduleStatus status)
Set the current status of the schedule.- Parameters:
status
- The current status of the schedule.- Returns:
- fluent API
-
getNotificationEmail
public List<String> getNotificationEmail()
Get the notification email addresses.- Returns:
- Notification email addresses.
-
setNotificationEmail
public ScheduleModel setNotificationEmail(List<String> notificationEmail)
Set the notification email addresses.- Parameters:
notificationEmail
- Notification email addresses- Returns:
- fluent API
-
getRuns
public int getRuns()
Get the number of executions for this schedule.- Returns:
- The number of executions for this schedule.
-
setRuns
public ScheduleModel setRuns(int runs)
Set the number of executions for this schedule.- Parameters:
runs
- The number of executions for this schedule.- Returns:
- fluent API
-
getAverageTime
public int getAverageTime()
Get the average runtime of this schedules executions.- Returns:
- The average runtime of this schedules executions.
-
setAverageTime
public ScheduleModel setAverageTime(int averageTime)
Set the average runtime of this schedules executions.- Parameters:
averageTime
- The average runtime of this schedules executions.- Returns:
- fluent API
-
getLastExecution
public ExecutionModel getLastExecution()
Get the data for the last execution if any.- Returns:
- The data for the last execution.
-
setLastExecution
public ScheduleModel setLastExecution(ExecutionModel lastExecution)
Set the data for the last execution.- Parameters:
lastExecution
- The data for the last execution.- Returns:
- fluent API
-
getCreator
public User getCreator()
Task creator- Returns:
- creator
-
setCreator
public ScheduleModel setCreator(User creator)
Set the creator- Parameters:
creator
- creator- Returns:
- fluent API
-
getCdate
public int getCdate()
Task creation timestamp- Returns:
- creation timestamp
-
setCdate
public ScheduleModel setCdate(int cdate)
Set the creation timestamp- Parameters:
cdate
- timestamp- Returns:
- fluent API
-
getEditor
public User getEditor()
Last task editor- Returns:
- editor
-
setEditor
public ScheduleModel setEditor(User editor)
Set the editor- Parameters:
editor
- editor- Returns:
- fluent API
-
getEdate
public int getEdate()
Last task edit timestamp- Returns:
- edit timestamp
-
setEdate
public ScheduleModel setEdate(int edate)
Set the edit timestamp- Parameters:
edate
- timestamp- Returns:
- fluent API
-
-