Package com.logicaldoc.core.task
Class TaskScheduling
java.lang.Object
com.logicaldoc.core.task.TaskScheduling
Scheduling configuration for a Task
- Since:
- 3.5.0
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlonggetDelay()longlonglonglongThe maximum duration expressed in secondsgetMode()booleanvoidload()Loads scheduling configurations from persistent storevoidsave()Saves scheduling configurations in the persistent storevoidsetCronExpression(String cronExpression) voidsetDelay(long delay) voidsetDelaySeconds(long delay) voidsetEnabled(boolean enabled) voidsetInterval(long interval) voidsetIntervalSeconds(long interval) voidsetMaxLength(long maxLength) voidvoidsetPreviousFireTime(Date previousFireTime) toString()
- 
Constructor Details- 
TaskScheduling
 
- 
- 
Method Details- 
getTaskName
- 
getPreviousFireTime
- 
setPreviousFireTime
- 
getMaxLengthpublic long getMaxLength()The maximum duration expressed in seconds- Returns:
- the maximpum duration in seconds
 
- 
setMaxLengthpublic void setMaxLength(long maxLength) 
- 
getNextFireTime
- 
isEnabledpublic boolean isEnabled()
- 
setEnabledpublic void setEnabled(boolean enabled) 
- 
loadLoads scheduling configurations from persistent store- Throws:
- IOException- error reading the configuration file
- ParseException- error parsing the scheduling expression
 
- 
saveSaves scheduling configurations in the persistent store- Throws:
- IOException- raised is an I/O problem occurs
- ParseException- raised if the scheduling expression is invalid
 
- 
toString
- 
getMode
- 
setMode
- 
getDelaypublic long getDelay()
- 
getDelaySecondspublic long getDelaySeconds()
- 
setDelaypublic void setDelay(long delay) 
- 
setDelaySecondspublic void setDelaySeconds(long delay) 
- 
getIntervalpublic long getInterval()
- 
getIntervalSecondspublic long getIntervalSeconds()
- 
setIntervalpublic void setInterval(long interval) 
- 
setIntervalSecondspublic void setIntervalSeconds(long interval) 
- 
getCronExpression
- 
setCronExpression
 
-