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, closeactivate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate_async, close_async, getCurrentEventContext_async, passivate_asyncpublic JobHandleI(ome.api.JobHandle service,
                  BlitzExecutor be)
public void attach_async(AMD_JobHandle_attach __cb, long jobId, Ice.Current __current) throws ServerError
_JobHandleOperationsJobStatus for the
 Job id.attach_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void cancelJob_async(AMD_JobHandle_cancelJob __cb, Ice.Current __current) throws ServerError
_JobHandleOperationscancelJob_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void getJob_async(AMD_JobHandle_getJob __cb, Ice.Current __current) throws ServerError
_JobHandleOperationsJobgetJob_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void jobError_async(AMD_JobHandle_jobError __cb, Ice.Current __current) throws ServerError
_JobHandleOperationstrue 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.ServerErrorpublic void jobFinished_async(AMD_JobHandle_jobFinished __cb, Ice.Current __current) throws ServerError
_JobHandleOperationsjobFinished_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void jobMessage_async(AMD_JobHandle_jobMessage __cb, Ice.Current __current) throws ServerError
_JobHandleOperationsjobMessage_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void jobRunning_async(AMD_JobHandle_jobRunning __cb, Ice.Current __current) throws ServerError
_JobHandleOperationstrue 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.ServerErrorpublic void jobStatus_async(AMD_JobHandle_jobStatus __cb, Ice.Current __current) throws ServerError
_JobHandleOperationsJobStatus. Will
 never return null.jobStatus_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void submit_async(AMD_JobHandle_submit __cb, Job j, Ice.Current __current) throws ServerError
_JobHandleOperationsJob 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.ServerErrorpublic void setStatus_async(AMD_JobHandle_setStatus __cb, java.lang.String status, Ice.Current __current) throws ServerError
_JobHandleOperationsJobStatus 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.ServerErrorpublic void setStatusAndMessage_async(AMD_JobHandle_setStatusAndMessage __cb, java.lang.String status, RString msg, Ice.Current __current) throws ServerError
_JobHandleOperationssetStatus but also sets the message.setStatusAndMessage_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorpublic void setMessage_async(AMD_JobHandle_setMessage __cb, java.lang.String message, Ice.Current __current) throws ServerError
_JobHandleOperationssetMessage_async in interface _JobHandleOperations__cb - The callback object for the operation.__current - The Current object for the invocation.ServerErrorprotected void preClose(Ice.Current current)
                 throws java.lang.Throwable
preClose in class AbstractCloseableAmdServantjava.lang.Throwableprotected void postClose(Ice.Current current)
AbstractCloseableAmdServantpostClose in class AbstractCloseableAmdServant