public interface _ScriptProcessOperationsNC extends _ProcessOperationsNC
Process interface which is returned by
IScript when an ScriptJob is launched.
It is critical that instances of (@code ScriptProcess} are closed
on completion. See the close(boolean) method for more information.| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean detach)
Closes this process and frees server resources attached to it.
|
ScriptJob |
getJob()
Returns the job which started this process.
|
java.util.Map<java.lang.String,RType> |
getResults(int waitSecs)
Returns the results immediately if present.
|
java.lang.String |
setMessage(java.lang.String message)
Sets the message on the
ScriptJob object. |
_wait, cancel, kill, poll, registerCallback, shutdown, unregisterCallbackScriptJob getJob() throws ServerError
ServerErrorjava.util.Map<java.lang.String,RType> getResults(int waitSecs) throws ServerError
ApiUsageException. If poll has returned a non-null
value, then this method will always return a non-null value.ServerErrorjava.lang.String setMessage(java.lang.String message)
throws ServerError
ScriptJob object.
This value MAY be overwritten by the server if the script
fails.ServerErrorvoid close(boolean detach)
throws ServerError
IScript service.
If the detach argument is False, then the background process
will be shutdown immediately, and all intermediate results
(stdout, stderr, ...) will be uploaded.ServerError