public interface _JobHandleOperationsNC extends _StatefulServiceInterfaceOperationsNC
NOTE: The calling order for the service is as follows:
submit or attachcloseclose 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_asyncvoid 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 nullServerErrorvoid attach_async(AMD_JobHandle_attach __cb, long jobId) throws ServerError
JobStatus for the
Job id.__cb - The callback object for the operation.ApiUsageException - if the Job does not exist.ServerErrorvoid getJob_async(AMD_JobHandle_getJob __cb) throws ServerError
Job__cb - The callback object for the operation.ServerErrorvoid jobStatus_async(AMD_JobHandle_jobStatus __cb) throws ServerError
JobStatus. Will
never return null.__cb - The callback object for the operation.ServerErrorvoid jobFinished_async(AMD_JobHandle_jobFinished __cb) throws ServerError
__cb - The callback object for the operation.ServerErrorvoid jobMessage_async(AMD_JobHandle_jobMessage __cb) throws ServerError
__cb - The callback object for the operation.ServerErrorvoid 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.ServerErrorvoid jobError_async(AMD_JobHandle_jobError __cb) throws ServerError
true if the Job
has thrown an error.__cb - The callback object for the operation.ServerErrorvoid cancelJob_async(AMD_JobHandle_cancelJob __cb) throws ServerError
__cb - The callback object for the operation.ServerErrorvoid 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.ServerErrorvoid setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message) throws ServerError
__cb - The callback object for the operation.ServerErrorvoid 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