Package omero.api
Class Callback_IScript_runScript
- java.lang.Object
-
- IceInternal.CallbackBase
-
- IceInternal.TwowayCallback
-
- omero.api.Callback_IScript_runScript
-
- All Implemented Interfaces:
Ice.TwowayCallback,Ice.TwowayCallbackArg1<ScriptProcessPrx>,Ice.TwowayCallbackArg1UE<ScriptProcessPrx>
public abstract class Callback_IScript_runScript extends IceInternal.TwowayCallback implements Ice.TwowayCallbackArg1UE<ScriptProcessPrx>
IfResourceErroris thrown, then noProcessoris available. UsescheduleJobto create aScriptJobin the Waiting state. AProcessormay become available.
Thetry: proc = scriptService.runScript(1, {}, None) except ResourceError: job = scriptService.scheduleScript(1, {}, None)ScriptProcessproxy MUST be closed before exiting. If you would like the script execution to continue in the background, passTrueas the argument.try: proc.poll() # See if process is finished finally: proc.close(True) # Detach and execution can continue # proc.close(False) # OR script is immediately stopped.
-
-
Constructor Summary
Constructors Constructor Description Callback_IScript_runScript()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void__completed(Ice.AsyncResult __result)-
Methods inherited from class IceInternal.TwowayCallback
__hasSentCallback, __sent, exception, sent
-
Methods inherited from class IceInternal.CallbackBase
check
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface Ice.TwowayCallback
exception, exception
-
Methods inherited from interface Ice.TwowayCallbackArg1
response
-
Methods inherited from interface Ice.TwowayCallbackArg1UE
exception
-
-
-
-
Method Detail
-
__completed
public final void __completed(Ice.AsyncResult __result)
- Specified by:
__completedin classIceInternal.CallbackBase
-
-