public interface _JobHandleOperations extends _StatefulServiceInterfaceOperations
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,
Ice.Current __current)
Returns the current
JobStatus for the
Job id. |
void |
cancelJob_async(AMD_JobHandle_cancelJob __cb,
Ice.Current __current)
Marks a job for cancellation.
|
void |
getJob_async(AMD_JobHandle_getJob __cb,
Ice.Current __current)
Returns the current
Job |
void |
jobError_async(AMD_JobHandle_jobError __cb,
Ice.Current __current)
Returns
true if the Job
has thrown an error. |
void |
jobFinished_async(AMD_JobHandle_jobFinished __cb,
Ice.Current __current)
|
void |
jobMessage_async(AMD_JobHandle_jobMessage __cb,
Ice.Current __current)
Returns the current message for job.
|
void |
jobRunning_async(AMD_JobHandle_jobRunning __cb,
Ice.Current __current)
Returns
true if the Job is
running, i.e. |
void |
jobStatus_async(AMD_JobHandle_jobStatus __cb,
Ice.Current __current)
Returns the current
JobStatus . |
void |
setMessage_async(AMD_JobHandle_setMessage __cb,
java.lang.String message,
Ice.Current __current)
Sets the job's message string, and returns the previous
value.
|
void |
setStatus_async(AMD_JobHandle_setStatus __cb,
java.lang.String status,
Ice.Current __current)
Updates the
JobStatus for the current
job. |
void |
setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb,
java.lang.String status,
RString message,
Ice.Current __current)
Like
setStatus but also sets the message. |
void |
submit_async(AMD_JobHandle_submit __cb,
Job job,
Ice.Current __current)
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, Ice.Current __current) 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 null__current
- The Current object for the invocation.ServerError
void attach_async(AMD_JobHandle_attach __cb, long jobId, Ice.Current __current) throws ServerError
JobStatus
for the
Job id.__cb
- The callback object for the operation.__current
- The Current object for the invocation.ApiUsageException
- if the Job
does not exist.ServerError
void getJob_async(AMD_JobHandle_getJob __cb, Ice.Current __current) throws ServerError
Job
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void jobStatus_async(AMD_JobHandle_jobStatus __cb, Ice.Current __current) throws ServerError
JobStatus
. Will
never return null.__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void jobFinished_async(AMD_JobHandle_jobFinished __cb, Ice.Current __current) throws ServerError
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void jobMessage_async(AMD_JobHandle_jobMessage __cb, Ice.Current __current) throws ServerError
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void jobRunning_async(AMD_JobHandle_jobRunning __cb, Ice.Current __current) throws ServerError
true
if the Job
is
running, i.e. has an attached process.__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void jobError_async(AMD_JobHandle_jobError __cb, Ice.Current __current) throws ServerError
true
if the Job
has thrown an error.__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void cancelJob_async(AMD_JobHandle_cancelJob __cb, Ice.Current __current) throws ServerError
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void setStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status, Ice.Current __current) 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.__current
- The Current object for the invocation.ServerError
void setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message, Ice.Current __current) throws ServerError
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
void setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString message, Ice.Current __current) throws ServerError
setStatus
but also sets the message.__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError