Package omero.grid
Interface _InteractiveProcessorOperationsNC
-
- All Known Subinterfaces:
InteractiveProcessor
- All Known Implementing Classes:
_InteractiveProcessorDisp,_InteractiveProcessorTie
public interface _InteractiveProcessorOperationsNCClient 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 ProcessPrxexecute(RMap inputs)Executes an instance of the job returned by getJob() using the given map as inputs.longexpires()Returns the system clock time in milliseconds since the epoch at which this processor will be reaped.JobgetJob()Returns the job which defines this processor.RMapgetResults(ProcessPrx proc)Retrieve the results for the given process.JobParamsparams()Retrieves the parameters needed to be passed in an execution and the results which will be passed back out.booleansetDetach(boolean detach)Sets whether or not cancel will be called on the currentProcesson stop.voidstop()Clears the current execution ofJobfrom 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
-
execute
ProcessPrx execute(RMap inputs) throws ServerError
Executes an instance of the job returned by getJob() using the given map as inputs.- 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
-
setDetach
boolean setDetach(boolean detach) throws ServerErrorSets whether or not cancel will be called on the currentProcesson stop. If detach is true, then theProcesswill continue running. Otherwise,_ProcessOperations.cancel(Ice.Current)will be called, before preparing for another run. false by default- Throws:
ServerError
-
stop
void stop() throws ServerError
Clears the current execution ofJobfrom the processor to prepare for another execution. cancel() will be called on the currentProcessif detach is set to false.- Throws:
ServerError
-
-