quartz-mongodb
quartz-mongodb copied to clipboard
Allow Jobdata for Jobs and store them as BSON
trafficstars
finally I got the mongo backend working, but I would like to submit some feature requests.
- Currently it is only possible to use jobdata on triggers (but not on jobs). And I think jobs will therefore not be updated after execution (annontation @PersistJobDataAfterExecution).
So it would be great to store jobdata on jobs too and persist them if requested.
- In the trigger the jobdata is just as base encoded string.
Since jobdatamap can only hold primitives anyway, why not store them as json/bson embedded object. this would have the big advandatege that the job data is searchable!
- A really nice feature would be if you can make a new implementation of org.quartz.plugins.history.LoggingJobHistoryPlugin and org.quartz.plugins.history.LoggingTriggerHistoryPlugin to store the result in a time to live constraint collection.
@pwojnowski does this sound reasonable to you?