Package org.mycore.mcr.cronjob
Class MCRCronjob
java.lang.Object
org.mycore.mcr.cronjob.MCRCronjob
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
MCRCommandCronJob
MCRCronjobManager.JOBS_CONFIG_PREFIX
and automatic executed. If you want to create your own
MCRCronjob
you should maybe look if MCRCommandCronJob
is good enough.
The Default properties for this Configurable are:
cronType
and setCron(String)
-
Field Details
-
cronType
The format type of thecron
property. Default is Unix, other possible values are: CRON4J, QUARTZ, UNIX, SPRING
-
-
Constructor Details
-
MCRCronjob
public MCRCronjob()
-
-
Method Details
-
getID
-
setID
-
checkConfiguration
-
getCron
public com.cronutils.model.Cron getCron() -
setCron
- Parameters:
cron
- The description when the Cronjob should be executed.
-
getNextExecution
-
getCronDescription
-
getProcessable
-
run
public final void run() -
runJob
public abstract void runJob()Will be executed according to the Cron schedule. Remember to callgetProcessable()
and update its values to let the user know what you are doing. -
getDescription
- Returns:
- A Description what this Cronjob does.
-