Package omero.grid

Interface _InteractiveProcessorOperationsNC

  • All Known Subinterfaces:
    InteractiveProcessor
    All Known Implementing Classes:
    _InteractiveProcessorDisp, _InteractiveProcessorTie

    public interface _InteractiveProcessorOperationsNC
    Client facing interface to the background processing framework. If a user needs interactivity, one of these processors should be acquired from the ServiceFactory. Otherwise, a Job can be submitted via JobHandle.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      ProcessPrx execute​(RMap inputs)
      Executes an instance of the job returned by getJob() using the given map as inputs.
      long expires()
      Returns the system clock time in milliseconds since the epoch at which this processor will be reaped.
      Job getJob()
      Returns the job which defines this processor.
      RMap getResults​(ProcessPrx proc)
      Retrieve the results for the given process.
      JobParams params()
      Retrieves the parameters needed to be passed in an execution and the results which will be passed back out.
      boolean setDetach​(boolean detach)
      Sets whether or not cancel will be called on the current Process on stop.
      void stop()
      Clears the current execution of Job from the processor to prepare for another execution.
    • Method Detail

      • expires

        long expires()
        Returns the system clock time in milliseconds since the epoch at which this processor will be reaped.
      • getJob

        Job getJob()
        Returns the job which defines this processor. This may be only the last job associated with the processor if execute is called multiple times.
      • params

        JobParams params()
                  throws ServerError
        Retrieves the parameters needed to be passed in an execution and the results which will be passed back out. This method is guaranteed to return a non-null value or throw an exception.
        Throws:
        ServerError
      • getResults

        RMap getResults​(ProcessPrx proc)
                 throws ServerError
        Retrieve the results for the given process. This will throw an ApiUsageException if called before the process has returned. Use either process.poll() or process.wait() or a ProcessCallback to wait for completion before calling. If the user has not overridden or disabled the output values "stdout" and "stderr", these will be filled with the OriginalFile instances uploaded after completion under the key values of the same name.
        Throws:
        ServerError
      • stop

        void stop()
           throws ServerError
        Clears the current execution of Job from the processor to prepare for another execution. cancel() will be called on the current Process if detach is set to false.
        Throws:
        ServerError