public class JobHandleI extends AbstractCloseableAmdServant implements _JobHandleOperations
JobHandle
Constructor and Description |
---|
JobHandleI(ome.api.JobHandle service,
BlitzExecutor be) |
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 . |
protected void |
postClose(Ice.Current current)
Should not throw any exceptions which should be detected by clients
since it is called in a finally block after the client thread has been
released.
|
protected void |
preClose(Ice.Current current) |
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 msg,
Ice.Current __current)
Like
setStatus but also sets the message. |
void |
submit_async(AMD_JobHandle_submit __cb,
Job j,
Ice.Current __current)
Submits a
Job and returns its database
id. |
close_async, close
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate_async, close_async, getCurrentEventContext_async, passivate_async
public JobHandleI(ome.api.JobHandle service, BlitzExecutor be)
public void attach_async(AMD_JobHandle_attach __cb, long jobId, Ice.Current __current) throws ServerError
_JobHandleOperations
JobStatus
for the
Job id.attach_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void cancelJob_async(AMD_JobHandle_cancelJob __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
cancelJob_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void getJob_async(AMD_JobHandle_getJob __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
Job
getJob_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void jobError_async(AMD_JobHandle_jobError __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
true
if the Job
has thrown an error.jobError_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void jobFinished_async(AMD_JobHandle_jobFinished __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
jobFinished_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void jobMessage_async(AMD_JobHandle_jobMessage __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
jobMessage_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void jobRunning_async(AMD_JobHandle_jobRunning __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
true
if the Job
is
running, i.e. has an attached process.jobRunning_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void jobStatus_async(AMD_JobHandle_jobStatus __cb, Ice.Current __current) throws ServerError
_JobHandleOperations
JobStatus
. Will
never return null.jobStatus_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void submit_async(AMD_JobHandle_submit __cb, Job j, Ice.Current __current) throws ServerError
_JobHandleOperations
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.submit_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.j
- Not null__current
- The Current object for the invocation.ServerError
public void setStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status, Ice.Current __current) throws ServerError
_JobHandleOperations
JobStatus
for the current
job. The previous status is returned as a string. If the
status is CANCELLED
, this method is equivalent to
cancelJob
.setStatus_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString msg, Ice.Current __current) throws ServerError
_JobHandleOperations
setStatus
but also sets the message.setStatusAndMessage_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
public void setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message, Ice.Current __current) throws ServerError
_JobHandleOperations
setMessage_async
in interface _JobHandleOperations
__cb
- The callback object for the operation.__current
- The Current object for the invocation.ServerError
protected void preClose(Ice.Current current) throws java.lang.Throwable
preClose
in class AbstractCloseableAmdServant
java.lang.Throwable
protected void postClose(Ice.Current current)
AbstractCloseableAmdServant
postClose
in class AbstractCloseableAmdServant