public abstract class _ScriptProcessDisp extends Ice.ObjectImpl implements ScriptProcess
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 | Field and Description |
---|---|
static java.lang.String[] |
__ids |
static long |
serialVersionUID |
ice_staticId
Constructor and Description |
---|
_ScriptProcessDisp() |
Modifier and Type | Method and 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.
|
boolean |
cancel()
Signal to the Process that it should terminate.
|
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.
|
protected void |
ice_copyStateFrom(Ice.Object __obj) |
java.lang.String |
ice_id() |
java.lang.String |
ice_id(Ice.Current __current) |
java.lang.String[] |
ice_ids() |
java.lang.String[] |
ice_ids(Ice.Current __current) |
boolean |
ice_isA(java.lang.String s) |
boolean |
ice_isA(java.lang.String s,
Ice.Current __current) |
static java.lang.String |
ice_staticId() |
boolean |
kill()
Terminate the Process immediately.
|
RInt |
poll()
Returns the return code of the process, or null
if unfinished.
|
void |
registerCallback(ProcessCallbackPrx cb)
Add a callback for end-of-life events
|
java.lang.String |
setMessage(java.lang.String message)
Sets the message on the
ScriptJob object. |
void |
shutdown()
First attempts cancel() several times and finally
resorts to kill to force the process to shutdown
cleanly.
|
void |
unregisterCallback(ProcessCallbackPrx cb)
Remove a callback for end-of-life events
|
___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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getJob, getResults, setMessage
__read, __read, __write, __write, clone, ice_dispatch, ice_dispatch, ice_operationAttributes, ice_ping, ice_ping, ice_postUnmarshal, ice_preMarshal
_wait, cancel, kill, poll, registerCallback, shutdown, unregisterCallback
public static final java.lang.String[] __ids
public static final long serialVersionUID
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public boolean ice_isA(java.lang.String s)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public boolean ice_isA(java.lang.String s, Ice.Current __current)
ice_isA
in interface Ice.Object
ice_isA
in class Ice.ObjectImpl
public java.lang.String[] ice_ids()
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String[] ice_ids(Ice.Current __current)
ice_ids
in interface Ice.Object
ice_ids
in class Ice.ObjectImpl
public java.lang.String ice_id()
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public java.lang.String ice_id(Ice.Current __current)
ice_id
in interface Ice.Object
ice_id
in class Ice.ObjectImpl
public static java.lang.String ice_staticId()
public final boolean cancel() throws ServerError
cancel
in interface _ProcessOperationsNC
ServerError
public final boolean kill()
kill
in interface _ProcessOperationsNC
public final RInt poll() throws ServerError
poll
in interface _ProcessOperationsNC
ServerError
public final void registerCallback(ProcessCallbackPrx cb) throws ServerError
registerCallback
in interface _ProcessOperationsNC
ServerError
public final void shutdown()
shutdown
in interface _ProcessOperationsNC
public final void unregisterCallback(ProcessCallbackPrx cb) throws ServerError
unregisterCallback
in interface _ProcessOperationsNC
ServerError
public final int _wait() throws ServerError
_wait
in interface _ProcessOperationsNC
ServerError
public final 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.close
in interface _ScriptProcessOperationsNC
ServerError
public final ScriptJob getJob() throws ServerError
getJob
in interface _ScriptProcessOperationsNC
ServerError
public final 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.getResults
in interface _ScriptProcessOperationsNC
ServerError
public final java.lang.String setMessage(java.lang.String message) throws ServerError
ScriptJob
object.
This value MAY be overwritten by the server if the script
fails.setMessage
in interface _ScriptProcessOperationsNC
ServerError
public static Ice.DispatchStatus ___getJob(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___getResults(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___setMessage(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
public static Ice.DispatchStatus ___close(ScriptProcess __obj, IceInternal.Incoming __inS, Ice.Current __current)
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)
__dispatch
in interface Ice.Object
__dispatch
in class Ice.ObjectImpl
protected void __writeImpl(IceInternal.BasicStream __os)
__writeImpl
in class Ice.ObjectImpl
protected void __readImpl(IceInternal.BasicStream __is)
__readImpl
in class Ice.ObjectImpl