public interface _JobHandleOperationsNC extends _StatefulServiceInterfaceOperationsNC
NOTE: The calling order for the service is as follows:
submit
or attach
close
close
does not cancel or otherwise change
the Job state. See cancelJob
.Modifier and Type | Method and Description |
---|---|
void |
attach_async(AMD_JobHandle_attach __cb,
long jobId)
Returns the current
JobStatus for the
Job id. |
void |
cancelJob_async(AMD_JobHandle_cancelJob __cb)
Marks a job for cancellation.
|
void |
getJob_async(AMD_JobHandle_getJob __cb)
Returns the current
Job |
void |
jobError_async(AMD_JobHandle_jobError __cb)
Returns
true if the Job
has thrown an error. |
void |
jobFinished_async(AMD_JobHandle_jobFinished __cb)
|
void |
jobMessage_async(AMD_JobHandle_jobMessage __cb)
Returns the current message for job.
|
void |
jobRunning_async(AMD_JobHandle_jobRunning __cb)
Returns
true if the Job is
running, i.e. |
void |
jobStatus_async(AMD_JobHandle_jobStatus __cb)
Returns the current
JobStatus . |
void |
setMessage_async(AMD_JobHandle_setMessage __cb,
java.lang.String message)
Sets the job's message string, and returns the previous
value.
|
void |
setStatus_async(AMD_JobHandle_setStatus __cb,
java.lang.String status)
Updates the
JobStatus for the current
job. |
void |
setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb,
java.lang.String status,
RString message)
Like
setStatus but also sets the message. |
void |
submit_async(AMD_JobHandle_submit __cb,
Job job)
Submits a
Job and returns its database
id. |
activate_async, close_async, getCurrentEventContext_async, passivate_async
void submit_async(AMD_JobHandle_submit __cb, Job job) throws ServerError
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.__cb
- The callback object for the operation.job
- Not nullServerError
void attach_async(AMD_JobHandle_attach __cb, long jobId) throws ServerError
JobStatus
for the
Job id.__cb
- The callback object for the operation.ServerError
void getJob_async(AMD_JobHandle_getJob __cb) throws ServerError
Job
__cb
- The callback object for the operation.ServerError
void jobStatus_async(AMD_JobHandle_jobStatus __cb) throws ServerError
JobStatus
. Will
never return null.__cb
- The callback object for the operation.ServerError
void jobFinished_async(AMD_JobHandle_jobFinished __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void jobMessage_async(AMD_JobHandle_jobMessage __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void jobRunning_async(AMD_JobHandle_jobRunning __cb) throws ServerError
true
if the Job
is
running, i.e. has an attached process.__cb
- The callback object for the operation.ServerError
void jobError_async(AMD_JobHandle_jobError __cb) throws ServerError
true
if the Job
has thrown an error.__cb
- The callback object for the operation.ServerError
void cancelJob_async(AMD_JobHandle_cancelJob __cb) throws ServerError
__cb
- The callback object for the operation.ServerError
void setStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status) throws ServerError
JobStatus
for the current
job. The previous status is returned as a string. If the
status is CANCELLED
, this method is equivalent to
cancelJob
.__cb
- The callback object for the operation.ServerError
void setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message) throws ServerError
__cb
- The callback object for the operation.ServerError
void setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString message) throws ServerError
setStatus
but also sets the message.__cb
- The callback object for the operation.ServerError