Class ScheduleModel
java.lang.Object
com.gentics.contentnode.rest.model.scheduler.ScheduleModel
- All Implemented Interfaces:
Serializable
Model for a scheduler schedule.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionTrue for internal tasks, false for external tasksint
Get the average runtime of this schedules executions.int
getCdate()
Task creation timestampTask creatorTask descriptionint
getEdate()
Last task edit timestampLast task editorgetId()
Task IDGet the data for the last execution if any.getName()
Task nameGet the notification email addresses.Whentrue
the schedule can be executed at the same time as other parallel schedules.int
getRuns()
Get the number of executions for this schedule.Get the schedule dataGet the current status of the schedule.getTask()
Get the task of the scheduleID of the executed taskSet the active flagsetAverageTime
(int averageTime) Set the average runtime of this schedules executions.setCdate
(int cdate) Set the creation timestampsetCreator
(User creator) Set the creatorsetDescription
(String description) Set the descriptionsetEdate
(int edate) Set the edit timestampSet the editorSet the IDsetLastExecution
(ExecutionModel lastExecution) Set the data for the last execution.Set the namesetNotificationEmail
(List<String> notificationEmail) Set the notification email addresses.setParallel
(Boolean parallel) Set the parallel flag.setRuns
(int runs) Set the number of executions for this schedule.setScheduleData
(ScheduleData scheduleData) Set schedule datasetStatus
(ScheduleStatus status) Set the current status of the schedule.Set the task of the scheduleSet the ID of the executed task
-
Constructor Details
-
ScheduleModel
public ScheduleModel()
-
-
Method Details
-
getId
Task ID- Returns:
- ID
-
setId
Set the ID- Parameters:
id
- ID- Returns:
- fluent API
-
getName
Task name- Returns:
- name
-
setName
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
getDescription
Task description- Returns:
- description
-
setDescription
Set the description- Parameters:
description
- description- Returns:
- fluent API
-
getTaskId
ID of the executed task- Returns:
- task ID
-
setTaskId
Set the ID of the executed task- Parameters:
taskId
- task ID- Returns:
- fluent API
-
getTask
Get the task of the schedule- Returns:
- task
-
setTask
Set the task of the schedule- Parameters:
task
- task- Returns:
- fluent API
-
getScheduleData
Get the schedule data- Returns:
- schedule data
-
setScheduleData
Set schedule data- Parameters:
scheduleData
- data- Returns:
- fluent API
-
getParallel
Whentrue
the schedule can be executed at the same time as other parallel schedules.- Returns:
- parallel flag
-
setParallel
Set the parallel flag.- Parameters:
parallel
- parallel flag- Returns:
- fluent API
-
getActive
True for internal tasks, false for external tasks- Returns:
- flag
-
setActive
Set the active flag- Parameters:
active
- flag- Returns:
- fluent API
-
getStatus
Get the current status of the schedule.- Returns:
- Get the current status of the schedule.
-
setStatus
Set the current status of the schedule.- Parameters:
status
- The current status of the schedule.- Returns:
- fluent API
-
getNotificationEmail
Get the notification email addresses.- Returns:
- Notification email addresses.
-
setNotificationEmail
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
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
Set the average runtime of this schedules executions.- Parameters:
averageTime
- The average runtime of this schedules executions.- Returns:
- fluent API
-
getLastExecution
Get the data for the last execution if any.- Returns:
- The data for the last execution.
-
setLastExecution
Set the data for the last execution.- Parameters:
lastExecution
- The data for the last execution.- Returns:
- fluent API
-
getCreator
Task creator- Returns:
- creator
-
setCreator
Set the creator- Parameters:
creator
- creator- Returns:
- fluent API
-
getCdate
public int getCdate()Task creation timestamp- Returns:
- creation timestamp
-
setCdate
Set the creation timestamp- Parameters:
cdate
- timestamp- Returns:
- fluent API
-
getEditor
Last task editor- Returns:
- editor
-
setEditor
Set the editor- Parameters:
editor
- editor- Returns:
- fluent API
-
getEdate
public int getEdate()Last task edit timestamp- Returns:
- edit timestamp
-
setEdate
Set the edit timestamp- Parameters:
edate
- timestamp- Returns:
- fluent API
-