public class ScriptProcessI extends AbstractAmdServant implements _ScriptProcessOperations
| Constructor and Description | 
|---|
ScriptProcessI(ServiceFactoryI sf,
              Ice.Current current,
              InteractiveProcessorPrx processorPrx,
              _InteractiveProcessorOperations processor,
              ProcessPrx process)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
_wait(Ice.Current __current)
Blocks until poll() would return a non-null return code. 
 | 
boolean | 
cancel(Ice.Current __current)
Signal to the Process that it should terminate. 
 | 
void | 
close(boolean detach,
     Ice.Current __current)
Closes this process and frees server resources attached to it. 
 | 
ScriptJob | 
getJob(Ice.Current __current)
Returns the job which started this process. 
 | 
ScriptProcessPrx | 
getProxy()  | 
java.util.Map<java.lang.String,RType> | 
getResults(int waitSecs,
          Ice.Current __current)
Returns the results immediately if present. 
 | 
boolean | 
kill(Ice.Current __current)
Terminate the Process immediately. 
 | 
RInt | 
poll(Ice.Current __current)
Returns the return code of the process, or null
 if unfinished. 
 | 
void | 
registerCallback(ProcessCallbackPrx cb,
                Ice.Current __current)
Add a callback for end-of-life events 
 | 
java.lang.String | 
setMessage(java.lang.String message,
          Ice.Current __current)
Sets the message on the  
ScriptJob object. | 
void | 
shutdown(Ice.Current __current)
First attempts cancel() several times and finally
 resorts to kill to force the process to shutdown
 cleanly. 
 | 
void | 
unregisterCallback(ProcessCallbackPrx cb,
                  Ice.Current __current)
Remove a callback for end-of-life events 
 | 
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, onSetOmeroContext, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolderpublic ScriptProcessI(ServiceFactoryI sf, Ice.Current current, InteractiveProcessorPrx processorPrx, _InteractiveProcessorOperations processor, ProcessPrx process) throws ServerError
ServerErrorpublic ScriptProcessPrx getProxy()
public void close(boolean detach,
                  Ice.Current __current)
           throws ServerError
_ScriptProcessOperationsIScript service.
 If the detach argument is False, then the background process
 will be shutdown immediately, and all intermediate results
 (stdout, stderr, ...) will be uploaded.close in interface _ScriptProcessOperations__current - The Current object for the invocation.ServerErrorpublic ScriptJob getJob(Ice.Current __current) throws ServerError
_ScriptProcessOperationsgetJob in interface _ScriptProcessOperations__current - The Current object for the invocation.ServerErrorpublic java.util.Map<java.lang.String,RType> getResults(int waitSecs, Ice.Current __current) throws ServerError
_ScriptProcessOperationsApiUsageException. If poll has returned a non-null
 value, then this method will always return a non-null value.getResults in interface _ScriptProcessOperations__current - The Current object for the invocation.ServerErrorpublic java.lang.String setMessage(java.lang.String message,
                                   Ice.Current __current)
                            throws ServerError
_ScriptProcessOperationsScriptJob object.
 This value MAY be overwritten by the server if the script
 fails.setMessage in interface _ScriptProcessOperations__current - The Current object for the invocation.ServerErrorpublic int _wait(Ice.Current __current)
          throws ServerError
_ProcessOperations_wait in interface _ProcessOperations__current - The Current object for the invocation.ServerErrorpublic boolean cancel(Ice.Current __current)
               throws ServerError
_ProcessOperationscancel in interface _ProcessOperations__current - The Current object for the invocation.ServerErrorpublic boolean kill(Ice.Current __current)
_ProcessOperationskill in interface _ProcessOperations__current - The Current object for the invocation.public RInt poll(Ice.Current __current) throws ServerError
_ProcessOperationspoll in interface _ProcessOperations__current - The Current object for the invocation.ServerErrorpublic void registerCallback(ProcessCallbackPrx cb, Ice.Current __current) throws ServerError
_ProcessOperationsregisterCallback in interface _ProcessOperations__current - The Current object for the invocation.ServerErrorpublic void shutdown(Ice.Current __current)
_ProcessOperationsshutdown in interface _ProcessOperations__current - The Current object for the invocation.public void unregisterCallback(ProcessCallbackPrx cb, Ice.Current __current) throws ServerError
_ProcessOperationsunregisterCallback in interface _ProcessOperations__current - The Current object for the invocation.ServerError