Package org.mycore.mcr.cronjob
Class MCRCommandCronJob
java.lang.Object
org.mycore.mcr.cronjob.MCRCronjob
org.mycore.mcr.cronjob.MCRCommandCronJob
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields inherited from class org.mycore.mcr.cronjob.MCRCronjob
cronType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runJob()
Will be executed according to the Cron schedule.void
setCommand
(String command) Methods inherited from class org.mycore.mcr.cronjob.MCRCronjob
checkConfiguration, getCron, getCronDescription, getID, getNextExecution, getProcessable, run, setCron, setID
-
Constructor Details
-
MCRCommandCronJob
public MCRCommandCronJob()
-
-
Method Details
-
getCommand
-
setCommand
-
runJob
public void runJob()Description copied from class:MCRCronjob
Will be executed according to the Cron schedule. Remember to callMCRCronjob.getProcessable()
and update its values to let the user know what you are doing.- Specified by:
runJob
in classMCRCronjob
-
getDescription
- Specified by:
getDescription
in classMCRCronjob
- Returns:
- A Description what this Cronjob does.
-