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, unregisterCallback
ScriptJob getJob() throws ServerError
ServerError
java.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.ServerError
java.lang.String setMessage(java.lang.String message) throws ServerError
ScriptJob
object.
This value MAY be overwritten by the server if the script
fails.ServerError
void 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