Package omero.api

Interface _JobHandleOperations

    • Method Detail

      • submit_async

        void submit_async​(AMD_JobHandle_submit __cb,
                          Job job,
                          Ice.Current __current)
                   throws ServerError
        Submits a 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.
        Parameters:
        __cb - The callback object for the operation.
        job - Not null
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • attach_async

        void attach_async​(AMD_JobHandle_attach __cb,
                          long jobId,
                          Ice.Current __current)
                   throws ServerError
        Returns the current JobStatus for the Job id.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ApiUsageException - if the Job does not exist.
        ServerError
      • getJob_async

        void getJob_async​(AMD_JobHandle_getJob __cb,
                          Ice.Current __current)
                   throws ServerError
        Returns the current Job
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • jobStatus_async

        void jobStatus_async​(AMD_JobHandle_jobStatus __cb,
                             Ice.Current __current)
                      throws ServerError
        Returns the current JobStatus. Will never return null.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • jobFinished_async

        void jobFinished_async​(AMD_JobHandle_jobFinished __cb,
                               Ice.Current __current)
                        throws ServerError
        Returns null if the Job is not finished, otherwise the RTime for when it completed.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • jobMessage_async

        void jobMessage_async​(AMD_JobHandle_jobMessage __cb,
                              Ice.Current __current)
                       throws ServerError
        Returns the current message for job. May be set during processing.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • jobRunning_async

        void jobRunning_async​(AMD_JobHandle_jobRunning __cb,
                              Ice.Current __current)
                       throws ServerError
        Returns true if the Job is running, i.e. has an attached process.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • jobError_async

        void jobError_async​(AMD_JobHandle_jobError __cb,
                            Ice.Current __current)
                     throws ServerError
        Returns true if the Job has thrown an error.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • cancelJob_async

        void cancelJob_async​(AMD_JobHandle_cancelJob __cb,
                             Ice.Current __current)
                      throws ServerError
        Marks a job for cancellation. Not every processor will check for the cancelled flag for a running job, but no non-running job will start if it has been cancelled.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • setStatus_async

        void setStatus_async​(AMD_JobHandle_setStatus __cb,
                             java.lang.String status,
                             Ice.Current __current)
                      throws ServerError
        Updates the JobStatus for the current job. The previous status is returned as a string. If the status is CANCELLED, this method is equivalent to cancelJob.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • setMessage_async

        void setMessage_async​(AMD_JobHandle_setMessage __cb,
                              java.lang.String message,
                              Ice.Current __current)
                       throws ServerError
        Sets the job's message string, and returns the previous value.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • setStatusAndMessage_async

        void setStatusAndMessage_async​(AMD_JobHandle_setStatusAndMessage __cb,
                                       java.lang.String status,
                                       RString message,
                                       Ice.Current __current)
                                throws ServerError
        Like setStatus but also sets the message.
        Parameters:
        __cb - The callback object for the operation.
        __current - The Current object for the invocation.
        Throws:
        ServerError