String whois needed to create the greeting.
int delaydetermines how long the service waits before returning the greeting. The
Progress progressparameter allows the job to easily report on its progress.
JobExecutionentity. This helps:
JobExecutionentity is abstract. You will not find a repository for it. So let's extend the JobExecution entity and add a
delayattribute to store the value of the delay parameter. We could also add an attribute to store the value of the who String. But instead, we'll use the
userattribute which we inherit from
HelloWorldJobExecutionFactory, just like for any system entity you create.
Make sure you specify a unique name for your bean!
delayproperty of type integer will get written to
userproperty of the JobExecution will get set automatically to the user who created the
Progressinterface to log the progress of the job execution.
progress()method will be written to the
progressIntattribute of the
JobExecutionentity and displayed in the progress bar. If you specify a value for
progressMax, the progress bar will be set to a width proportional to
progressInt/progressMax. Otherwise it'll be full width, and animated while running.
logattribute of the
JobExecutions currently running and in the past. It needs a URL prop that it'll query regularly to keep the overview up to date. The mechanism for updating the screen is very simply polling the server for a complete overview for all jobs, so be careful not to overdo it.