Package omero.grid

Class InteractiveProcessorI

    • Constructor Summary

      Constructors 
      Constructor Description
      InteractiveProcessorI​(ome.system.Principal p, ome.services.sessions.SessionManager mgr, ome.services.util.Executor ex, ProcessorPrx prx, Job job, long timeout, Glacier2.SessionControlPrx control, ParamsCache paramsCache, ParamsHelper paramsHelper, ome.services.scripts.ScriptRepoHelper scriptRepoHelper, Ice.Current current)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close​(Ice.Current current)  
      protected void doStop()  
      ProcessPrx execute​(RMap inputs, Ice.Current __current)
      Executes an instance of the job returned by getJob() using the given map as inputs.
      long expires​(Ice.Current __current)
      Returns the system clock time in milliseconds since the epoch at which this processor will be reaped.
      Job getJob​(Ice.Current __current)
      Returns the job which defines this processor.
      RMap getResults​(ProcessPrx proc, Ice.Current __current)
      Retrieve the results for the given process.
      JobParams params​(Ice.Current __current)
      Retrieves the parameters needed to be passed in an execution and the results which will be passed back out.
      boolean setDetach​(boolean detach, Ice.Current __current)
      Sets whether or not cancel will be called on the current Process on stop.
      void stop​(Ice.Current __current)
      Cancels the current process, nulls the value, and returns immediately if detach is false.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InteractiveProcessorI

        public InteractiveProcessorI​(ome.system.Principal p,
                                     ome.services.sessions.SessionManager mgr,
                                     ome.services.util.Executor ex,
                                     ProcessorPrx prx,
                                     Job job,
                                     long timeout,
                                     Glacier2.SessionControlPrx control,
                                     ParamsCache paramsCache,
                                     ParamsHelper paramsHelper,
                                     ome.services.scripts.ScriptRepoHelper scriptRepoHelper,
                                     Ice.Current current)
                              throws ServerError
        Parameters:
        p -
        mgr -
        prx -
        job - Unloaded Job instance, which will be used by Processor to reload the Job
        timeout -
        Throws:
        ServerError
    • Method Detail

      • getResults

        public RMap getResults​(ProcessPrx proc,
                               Ice.Current __current)
                        throws ServerError
        Description copied from interface: _InteractiveProcessorOperations
        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.
        Specified by:
        getResults in interface _InteractiveProcessorOperations
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • expires

        public long expires​(Ice.Current __current)
        Description copied from interface: _InteractiveProcessorOperations
        Returns the system clock time in milliseconds since the epoch at which this processor will be reaped.
        Specified by:
        expires in interface _InteractiveProcessorOperations
        Parameters:
        __current - The Current object for the invocation.
      • getJob

        public Job getJob​(Ice.Current __current)
        Description copied from interface: _InteractiveProcessorOperations
        Returns the job which defines this processor. This may be only the last job associated with the processor if execute is called multiple times.
        Specified by:
        getJob in interface _InteractiveProcessorOperations
        Parameters:
        __current - The Current object for the invocation.
      • stop

        public void stop​(Ice.Current __current)
                  throws ServerError
        Cancels the current process, nulls the value, and returns immediately if detach is false.
        Specified by:
        stop in interface _InteractiveProcessorOperations
        Parameters:
        __current - The Current object for the invocation.
        Throws:
        ServerError
      • close

        public void close​(Ice.Current current)
                   throws java.lang.Exception
        Specified by:
        close in interface CloseableServant
        Throws:
        java.lang.Exception