|
Allows submission of asynchronous jobs.
NOTE: The calling order for the service is as follows:
null
if the model::Job is
not finished, otherwise the RTime for when it
completed.true
if the model::Job is
running, i.e.true
if the model::Job
has thrown an error.Submits a model::Job and returns its database id. The only fields directly on status which are editable are message, scheduledFor and status. The latter two must be sensible.
Returns the current model::JobStatus for the Job id.
Returns the current model::Job
Returns the current model::JobStatus. Will never return null.
Returns null
if the model::Job is
not finished, otherwise the RTime for when it
completed.
Returns the current message for job. May be set during processing.
Returns true
if the model::Job is
running, i.e. has an attached process.
Returns true
if the model::Job
has thrown an error.
Marks a job for cancellation. Not every processor will check for the cancelled flag for a running job, but no non-running job will start if it has been cancelled.
Updates the model::JobStatus for the current job. The previous status is returned as a string. If the status is {@code CANCELLED}, this method is equivalent to {@code cancelJob}.
Sets the job's message string, and returns the previous value.
the previous message value
Like {@code setStatus} but also sets the message.
|