Package omero.grid
Class _ProcessorDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._ProcessorDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_ProcessorOperations,_ProcessorOperationsNC,Processor
- Direct Known Subclasses:
_ProcessorTie
public abstract class _ProcessorDisp extends Ice.ObjectImpl implements Processor
Simple controller for Processes. Uses the session id given to create an Ice.Config file which is used as the sole argument to an execution of the given job. Jobs are responsible for loading arguments from the environment via the session id.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.grid.Processor
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _ProcessorDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___parseJob(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___processJob(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___requestRunning(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___willAccept(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)Ice.DispatchStatus__dispatch(IceInternal.Incoming in, Ice.Current __current)protected void__readImpl(IceInternal.BasicStream __is)protected void__writeImpl(IceInternal.BasicStream __os)protected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()JobParamsparseJob(java.lang.String session, Job jobObject)Parses a job and returns metadata definition required for properly submitting the job.ProcessPrxprocessJob(java.lang.String session, JobParams params, Job jobObject)Starts a process based on the given job If this processor cannot handle the given job, a null process will be returned.voidrequestRunning(ProcessorCallbackPrx cb)Used by servers to find out what jobs are still active.voidwillAccept(Experimenter userContext, ExperimenterGroup groupContext, Job scriptContext, ProcessorCallbackPrx cb)Called bySharedResourcesto find a suitable target foromero.grid.SharedResources.acquireProcessor.-
Methods inherited from class Ice.ObjectImpl
___ice_id, ___ice_ids, ___ice_isA, ___ice_ping, __checkMode, __read, __read, __readImpl, __write, __write, __writeImpl, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.grid._ProcessorOperations
parseJob, processJob, requestRunning, willAccept
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_copyStateFrom
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
parseJob
public final JobParams parseJob(java.lang.String session, Job jobObject) throws ServerError
Parses a job and returns metadata definition required for properly submitting the job. This object will be cached by the server, and passed back intoprocessJob- Specified by:
parseJobin interface_ProcessorOperationsNC- Throws:
ServerError
-
processJob
public final ProcessPrx processJob(java.lang.String session, JobParams params, Job jobObject) throws ServerError
Starts a process based on the given job If this processor cannot handle the given job, a null process will be returned. Theparamsargument was created by a previously call toparseJob.- Specified by:
processJobin interface_ProcessorOperationsNC- Throws:
ServerError
-
requestRunning
public final void requestRunning(ProcessorCallbackPrx cb)
Used by servers to find out what jobs are still active. Response will be sent toProcessorCallback.responseRunning- Specified by:
requestRunningin interface_ProcessorOperationsNC
-
willAccept
public final void willAccept(Experimenter userContext, ExperimenterGroup groupContext, Job scriptContext, ProcessorCallbackPrx cb)
Called bySharedResourcesto find a suitable target foromero.grid.SharedResources.acquireProcessor. New processor instances are added to the checklist by usingomero.grid.SharedResources.addProcessor. All processors must respond with their session uuid in order to authorize the action.- Specified by:
willAcceptin interface_ProcessorOperationsNC
-
___willAccept
public static Ice.DispatchStatus ___willAccept(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___requestRunning
public static Ice.DispatchStatus ___requestRunning(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___parseJob
public static Ice.DispatchStatus ___parseJob(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___processJob
public static Ice.DispatchStatus ___processJob(Processor __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-