omero.grid
Class InteractiveProcessorI
java.lang.Object
Ice.ObjectImpl
omero.grid._InteractiveProcessorDisp
omero.grid.InteractiveProcessorI
- All Implemented Interfaces:
- Ice.Object, Serializable, Cloneable, omero.grid._InteractiveProcessorOperations, omero.grid._InteractiveProcessorOperationsNC, omero.grid.InteractiveProcessor
public class InteractiveProcessorI
- extends omero.grid._InteractiveProcessorDisp
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
.
- Since:
- 3.0-Beta3
- Author:
- Josh Moore, josh at glencoesoftware.com
- See Also:
- Serialized Form
Fields inherited from class omero.grid._InteractiveProcessorDisp |
__ids |
Method Summary |
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. |
Methods inherited from class omero.grid._InteractiveProcessorDisp |
___execute, ___expires, ___getJob, ___getResults, ___params, ___setDetach, ___stop, __dispatch, __read, __read, __write, __write, execute, expires, getJob, getResults, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, params, setDetach, stop |
Methods inherited from class Ice.ObjectImpl |
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __collocDispatch, clone, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal |
Methods inherited from interface Ice.Object |
__collocDispatch, clone, equals, ice_dispatch, ice_hash, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal |
InteractiveProcessorI
public InteractiveProcessorI(Principal p,
SessionManager mgr,
Executor ex,
omero.grid.ProcessorPrx prx,
omero.model.Job job,
long timeout,
Glacier2.SessionControlPrx control)
- Parameters:
p
- mgr
- prx
- job
- Unloaded Job
instance, which will be used by
Processor
to reload the Job
timeout
-
params
public omero.grid.JobParams params(Ice.Current __current)
throws omero.ServerError
- Throws:
omero.ServerError
execute
public omero.grid.ProcessPrx execute(omero.RMap inputs,
Ice.Current __current)
throws omero.ServerError
- Throws:
omero.ServerError
getResults
public omero.RMap getResults(omero.grid.ProcessPrx proc,
Ice.Current __current)
throws omero.ServerError
- Throws:
omero.ServerError
expires
public long expires(Ice.Current __current)
getJob
public omero.model.Job getJob(Ice.Current __current)
setDetach
public boolean setDetach(boolean detach,
Ice.Current __current)
stop
public void stop(Ice.Current __current)
throws omero.ServerError
- Cancels the current process, nulls the value, and returns immediately
if detach is false.
- Throws:
omero.ServerError
doStop
protected void doStop()
throws omero.ServerError
- Throws:
omero.ServerError
OmeroJava Api
Version: Beta-4.1.1-r5927-b91
Copyright © 2009 The University of Dundee. All Rights Reserved.