Package omero.grid
Class _ScriptProcessDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._ScriptProcessDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_ProcessOperations,_ProcessOperationsNC,_ScriptProcessOperations,_ScriptProcessOperationsNC,Process,ScriptProcess
- Direct Known Subclasses:
_ScriptProcessTie
public abstract class _ScriptProcessDisp extends Ice.ObjectImpl implements ScriptProcess
Extension of theProcessinterface which is returned byIScriptwhen anScriptJobis launched. It is critical that instances of (@code ScriptProcess} are closed on completion. See theclose(boolean)method for more information.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.grid.ScriptProcess
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _ScriptProcessDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___close(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getJob(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___getResults(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___setMessage(ScriptProcess __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)int_wait()Blocks until poll() would return a non-null return code.booleancancel()Signal to the Process that it should terminate.voidclose(boolean detach)Closes this process and frees server resources attached to it.ScriptJobgetJob()Returns the job which started this process.java.util.Map<java.lang.String,RType>getResults(int waitSecs)Returns the results immediately if present.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()booleankill()Terminate the Process immediately.RIntpoll()Returns the return code of the process, or null if unfinished.voidregisterCallback(ProcessCallbackPrx cb)Add a callback for end-of-life eventsjava.lang.StringsetMessage(java.lang.String message)Sets the message on theScriptJobobject.voidshutdown()First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly.voidunregisterCallback(ProcessCallbackPrx cb)Remove a callback for end-of-life events-
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._ProcessOperations
_wait, cancel, kill, poll, registerCallback, shutdown, unregisterCallback
-
Methods inherited from interface omero.grid._ScriptProcessOperations
close, getJob, getResults, setMessage
-
-
-
-
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()
-
cancel
public final boolean cancel() throws ServerErrorSignal to the Process that it should terminate. This may be done "softly" for a given time period.- Specified by:
cancelin interface_ProcessOperationsNC- Throws:
ServerError
-
kill
public final boolean kill()
Terminate the Process immediately.- Specified by:
killin interface_ProcessOperationsNC
-
poll
public final RInt poll() throws ServerError
Returns the return code of the process, or null if unfinished.- Specified by:
pollin interface_ProcessOperationsNC- Throws:
ServerError
-
registerCallback
public final void registerCallback(ProcessCallbackPrx cb) throws ServerError
Add a callback for end-of-life events- Specified by:
registerCallbackin interface_ProcessOperationsNC- Throws:
ServerError
-
shutdown
public final void shutdown()
First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly. This method doesn't return any value or throw an exception so that it can be called oneway.- Specified by:
shutdownin interface_ProcessOperationsNC
-
unregisterCallback
public final void unregisterCallback(ProcessCallbackPrx cb) throws ServerError
Remove a callback for end-of-life events- Specified by:
unregisterCallbackin interface_ProcessOperationsNC- Throws:
ServerError
-
_wait
public final int _wait() throws ServerErrorBlocks until poll() would return a non-null return code.- Specified by:
_waitin interface_ProcessOperationsNC- Throws:
ServerError
-
close
public final void close(boolean detach) throws ServerErrorCloses this process and frees server resources attached to it. If the detach argument is True, then the background process will continue executing. The user can reconnect to the process via theIScriptservice. If the detach argument is False, then the background process will be shutdown immediately, and all intermediate results (stdout, stderr, ...) will be uploaded.- Specified by:
closein interface_ScriptProcessOperationsNC- Throws:
ServerError
-
getJob
public final ScriptJob getJob() throws ServerError
Returns the job which started this process. Several scheduling fields (submitted, scheduledFor, started, finished) may be of interest.- Specified by:
getJobin interface_ScriptProcessOperationsNC- Throws:
ServerError
-
getResults
public final java.util.Map<java.lang.String,RType> getResults(int waitSecs) throws ServerError
Returns the results immediately if present. If the process is not yet finished, waits "waitSecs" before throwing anApiUsageException. If poll has returned a non-null value, then this method will always return a non-null value.- Specified by:
getResultsin interface_ScriptProcessOperationsNC- Throws:
ServerError
-
setMessage
public final java.lang.String setMessage(java.lang.String message) throws ServerErrorSets the message on theScriptJobobject. This value MAY be overwritten by the server if the script fails.- Specified by:
setMessagein interface_ScriptProcessOperationsNC- Throws:
ServerError
-
___getJob
public static Ice.DispatchStatus ___getJob(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___getResults
public static Ice.DispatchStatus ___getResults(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___setMessage
public static Ice.DispatchStatus ___setMessage(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___close
public static Ice.DispatchStatus ___close(ScriptProcess __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
-
-