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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getDelay()
long
long
long
long
The maximum duration expressed in secondsgetMode()
boolean
void
load()
Loads scheduling configurations from persistent storagevoid
save()
Saves scheduling configurations in the persistent storagevoid
setCronExpression
(String cronExpression) void
setDelay
(long delay) void
setDelaySeconds
(long delay) void
setEnabled
(boolean enabled) void
setInterval
(long interval) void
setIntervalSeconds
(long interval) void
setMaxLength
(long maxLength) void
void
setPreviousFireTime
(Date previousFireTime) toString()
-
Constructor Details
-
TaskScheduling
-
-
Method Details
-
getTaskName
-
getPreviousFireTime
-
setPreviousFireTime
-
getMaxLength
public long getMaxLength()The maximum duration expressed in seconds- Returns:
- the maximpum duration in seconds
-
setMaxLength
public void setMaxLength(long maxLength) -
getNextFireTime
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
load
Loads scheduling configurations from persistent storage- Throws:
IOException
- error reading the configuration fileParseException
- error parsing the scheduling expression
-
save
Saves scheduling configurations in the persistent storage- Throws:
IOException
- raised is an I/O problem occursParseException
- raised if the scheduling expression is invalid
-
toString
-
getMode
-
setMode
-
getDelay
public long getDelay() -
getDelaySeconds
public long getDelaySeconds() -
setDelay
public void setDelay(long delay) -
setDelaySeconds
public void setDelaySeconds(long delay) -
getInterval
public long getInterval() -
getIntervalSeconds
public long getIntervalSeconds() -
setInterval
public void setInterval(long interval) -
setIntervalSeconds
public void setIntervalSeconds(long interval) -
getCronExpression
-
setCronExpression
-