C. How to customize a Job ?
In the part A.3. Defining the job you have learnt that by extending AbstractJob and then overriding the abstract method jobWork(), you can describe what a job must do during its execution. In this part you will see that the extension of AbstractJob lets you also customizing your job. For instance: changing the job ID generation, the date format or how keeping an eye on some jobs with a JobObserver.
Below are the possible job customizations you will see:
- Job ID
- Date format
- Execution WITHOUT queue
- Execution WITH queue
- Error summary
- Destruction
- Keeping an eye on jobs
Obviously this list is not exhaustive ! Indeed, this library has been designed to leave the most freedom as possible to the developers. Only some sensitive behaviors or attributes are definitely unmodifiable. Thus if you have to modify some of the objects defined in this library for your UWS, you may do it by extending the good classes. For that you will surely need the following class diagram: