public class InteractiveProcessorI extends Object implements omero.grid._InteractiveProcessorOperations, CloseableServant
Processor
implementation which delegates to an omero.grid.Processor
servant. Functions as a state machine. A single ProcessPrx
can be
active at any given time. Once it's complete, then the results
can be obtained, then a new Job
can be submitted, until stop
is set. Any other use throws an ApiUsageException
.Constructor and Description |
---|
InteractiveProcessorI(Principal p,
SessionManager mgr,
Executor ex,
omero.grid.ProcessorPrx prx,
omero.model.Job job,
long timeout,
Glacier2.SessionControlPrx control,
ParamsCache paramsCache,
ParamsHelper paramsHelper,
ScriptRepoHelper scriptRepoHelper,
Ice.Current current) |
Modifier and Type | Method and Description |
---|---|
void |
close(Ice.Current current) |
protected void |
doStop() |
omero.grid.ProcessPrx |
execute(omero.RMap inputs,
Ice.Current __current) |
long |
expires(Ice.Current __current) |
omero.model.Job |
getJob(Ice.Current __current) |
omero.RMap |
getResults(omero.grid.ProcessPrx proc,
Ice.Current __current) |
omero.grid.JobParams |
params(Ice.Current __current) |
boolean |
setDetach(boolean detach,
Ice.Current __current) |
void |
stop(Ice.Current __current)
Cancels the current process, nulls the value, and returns immediately
if detach is false.
|
public InteractiveProcessorI(Principal p, SessionManager mgr, Executor ex, omero.grid.ProcessorPrx prx, omero.model.Job job, long timeout, Glacier2.SessionControlPrx control, ParamsCache paramsCache, ParamsHelper paramsHelper, ScriptRepoHelper scriptRepoHelper, Ice.Current current) throws omero.ServerError
p
- mgr
- prx
- job
- Unloaded Job
instance, which will be used by
Processor
to reload the Job
timeout
- omero.ServerError
public omero.grid.JobParams params(Ice.Current __current) throws omero.ServerError
params
in interface omero.grid._InteractiveProcessorOperations
omero.ServerError
public omero.grid.ProcessPrx execute(omero.RMap inputs, Ice.Current __current) throws omero.ServerError
execute
in interface omero.grid._InteractiveProcessorOperations
omero.ServerError
public omero.RMap getResults(omero.grid.ProcessPrx proc, Ice.Current __current) throws omero.ServerError
getResults
in interface omero.grid._InteractiveProcessorOperations
omero.ServerError
public long expires(Ice.Current __current)
expires
in interface omero.grid._InteractiveProcessorOperations
public omero.model.Job getJob(Ice.Current __current)
getJob
in interface omero.grid._InteractiveProcessorOperations
public boolean setDetach(boolean detach, Ice.Current __current)
setDetach
in interface omero.grid._InteractiveProcessorOperations
public void stop(Ice.Current __current) throws omero.ServerError
stop
in interface omero.grid._InteractiveProcessorOperations
omero.ServerError
protected void doStop() throws omero.ServerError
omero.ServerError
public void close(Ice.Current current) throws Exception
close
in interface CloseableServant
Exception
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.