JobExecutor
instead@Role @Deprecated public interface JobManager
Modifier and Type | Method and Description |
---|---|
void |
addJob(Job job)
Deprecated.
Add a new job in the queue of jobs to execute.
|
Job |
addJob(String jobType,
Request request)
Deprecated.
Add a new job in the queue of jobs to execute.
|
Job |
executeJob(String jobType,
Request request)
Deprecated.
Start a new job with the provided identifier and wait until its finished.
|
Job |
getCurrentJob()
Deprecated.
|
JobStatus |
getJobStatus(List<String> id)
Deprecated.
Return job status corresponding to the provided id from the current executed job or stored history.
|
JobStatus |
getJobStatus(String id)
Deprecated.
Return job status corresponding to the provided id from the current executed job or stored history.
|
Job getCurrentJob()
JobStatus getJobStatus(String id)
id
- the id of the jobJobStatus getJobStatus(List<String> id)
id
- the id of the jobJob executeJob(String jobType, Request request) throws JobException
jobType
- the role hint of the job componentrequest
- the requestJobException
- error when creating the jobJob addJob(String jobType, Request request) throws JobException
jobType
- the role hint of the job componentrequest
- the requestJobException
- error when creating the jobvoid addJob(Job job)
job
- the job to executeCopyright © 2004–2021 XWiki. All rights reserved.