Package omero.grid
Class _ProcessDisp
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._ProcessDisp
-
- All Implemented Interfaces:
Ice.Object,java.io.Serializable,java.lang.Cloneable,_ProcessOperations,_ProcessOperationsNC,Process
- Direct Known Subclasses:
_ProcessTie
public abstract class _ProcessDisp extends Ice.ObjectImpl implements Process
Thin wrapper around a system-level process. Most closely resembles Python's subprocess.Popen class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]__idsstatic longserialVersionUID-
Fields inherited from interface omero.grid.Process
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description _ProcessDisp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ice.DispatchStatus___cancel(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___kill(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___poll(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___registerCallback(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___shutdown(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___unregisterCallback(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)static Ice.DispatchStatus___wait(Process __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.booleancancel()Signal to the Process that it should terminate.protected voidice_copyStateFrom(Ice.Object __obj)java.lang.Stringice_id()java.lang.Stringice_id(Ice.Current __current)java.lang.String[]ice_ids()java.lang.String[]ice_ids(Ice.Current __current)booleanice_isA(java.lang.String s)booleanice_isA(java.lang.String s, Ice.Current __current)static java.lang.Stringice_staticId()booleankill()Terminate the Process immediately.RIntpoll()Returns the return code of the process, or null if unfinished.voidregisterCallback(ProcessCallbackPrx cb)Add a callback for end-of-life eventsvoidshutdown()First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly.voidunregisterCallback(ProcessCallbackPrx cb)Remove a callback for end-of-life events-
Methods inherited from class Ice.ObjectImpl
___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
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.grid._ProcessOperations
_wait, cancel, kill, poll, registerCallback, shutdown, unregisterCallback
-
-
-
-
Field Detail
-
__ids
public static final java.lang.String[] __ids
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
ice_copyStateFrom
protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException- Throws:
java.lang.CloneNotSupportedException
-
ice_isA
public boolean ice_isA(java.lang.String s)
- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_isA
public boolean ice_isA(java.lang.String s, Ice.Current __current)- Specified by:
ice_isAin interfaceIce.Object- Overrides:
ice_isAin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids()
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_ids
public java.lang.String[] ice_ids(Ice.Current __current)
- Specified by:
ice_idsin interfaceIce.Object- Overrides:
ice_idsin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id()
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_id
public java.lang.String ice_id(Ice.Current __current)
- Specified by:
ice_idin interfaceIce.Object- Overrides:
ice_idin classIce.ObjectImpl
-
ice_staticId
public static java.lang.String ice_staticId()
-
cancel
public final boolean cancel() throws ServerErrorSignal to the Process that it should terminate. This may be done "softly" for a given time period.- Specified by:
cancelin interface_ProcessOperationsNC- Throws:
ServerError
-
kill
public final boolean kill()
Terminate the Process immediately.- Specified by:
killin interface_ProcessOperationsNC
-
poll
public final RInt poll() throws ServerError
Returns the return code of the process, or null if unfinished.- Specified by:
pollin interface_ProcessOperationsNC- Throws:
ServerError
-
registerCallback
public final void registerCallback(ProcessCallbackPrx cb) throws ServerError
Add a callback for end-of-life events- Specified by:
registerCallbackin interface_ProcessOperationsNC- Throws:
ServerError
-
shutdown
public final void shutdown()
First attempts cancel() several times and finally resorts to kill to force the process to shutdown cleanly. This method doesn't return any value or throw an exception so that it can be called oneway.- Specified by:
shutdownin interface_ProcessOperationsNC
-
unregisterCallback
public final void unregisterCallback(ProcessCallbackPrx cb) throws ServerError
Remove a callback for end-of-life events- Specified by:
unregisterCallbackin interface_ProcessOperationsNC- Throws:
ServerError
-
_wait
public final int _wait() throws ServerErrorBlocks until poll() would return a non-null return code.- Specified by:
_waitin interface_ProcessOperationsNC- Throws:
ServerError
-
___poll
public static Ice.DispatchStatus ___poll(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___wait
public static Ice.DispatchStatus ___wait(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___cancel
public static Ice.DispatchStatus ___cancel(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___kill
public static Ice.DispatchStatus ___kill(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___shutdown
public static Ice.DispatchStatus ___shutdown(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___registerCallback
public static Ice.DispatchStatus ___registerCallback(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
___unregisterCallback
public static Ice.DispatchStatus ___unregisterCallback(Process __obj, IceInternal.Incoming __inS, Ice.Current __current)
-
__dispatch
public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current)- Specified by:
__dispatchin interfaceIce.Object- Overrides:
__dispatchin classIce.ObjectImpl
-
__writeImpl
protected void __writeImpl(IceInternal.BasicStream __os)
- Overrides:
__writeImplin classIce.ObjectImpl
-
__readImpl
protected void __readImpl(IceInternal.BasicStream __is)
- Overrides:
__readImplin classIce.ObjectImpl
-
-