org.clazzes.util.sched.api
public interface IJobStatusService
Modifier and Type | Method and Description |
---|---|
JobStatusDTO |
cancelJob(UUID jobId)
Cancel the job with the given ID.
|
JobStatusDTO |
getJobStatus(UUID jobId) |
JobStatusDTO |
waitForJob(UUID jobId,
long timeout) |
JobStatusDTO getJobStatus(UUID jobId)
jobId
- The ID of a long running-job, which is returned
as result of a POST request in the form
JOB_UUID=<jobId>
null
is returned, the job is not known, or the status
of the job has expired.JobStatusDTO waitForJob(UUID jobId, long timeout)
jobId
- The ID of a long running-job, which is returned
as result of a POST request in the form
JOB_UUID=<jobId>
timeout
- The number of milliseconds to wait for the termination of the job.null
is returned, the job is not known, or the status
of the job has expired.JobStatusDTO cancelJob(UUID jobId)
jobId
- The ID of a long running-job, which is returned
as result of a POST request in the form
JOB_UUID=<jobId>
null
is returned, the job is not known, or the status
of the job has expired.Copyright © 2014 Clazzes.org. All Rights Reserved.