Package omero.grid
Class ProcessCallbackI
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.grid._ProcessCallbackDisp
-
- omero.grid.ProcessCallbackI
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,_ProcessCallbackOperations
,_ProcessCallbackOperationsNC
,ProcessCallback
public class ProcessCallbackI extends _ProcessCallbackDisp
- Since:
- Beta4.2
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessCallbackI.Action
-
Field Summary
Fields Modifier and Type Field Description protected ProcessPrx
process
Proxy passed to this instance on creation.-
Fields inherited from class omero.grid._ProcessCallbackDisp
__ids, serialVersionUID
-
Fields inherited from interface omero.grid.ProcessCallback
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description ProcessCallbackI(Ice.ObjectAdapter adapter, java.lang.String category, ProcessPrx process)
ProcessCallbackI(Ice.ObjectAdapter adapter, java.lang.String category, ProcessPrx process, boolean poll)
ProcessCallbackI(client client, ProcessPrx process)
ProcessCallbackI(client client, ProcessPrx process, boolean poll)
ProcessCallbackI(ProcessCallbackI pcb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProcessCallbackI.Action
block(long ms)
Should only be used if the default logic of the process methods is kept in place.void
close()
void
processCancelled(boolean success, Ice.Current __current)
cancel() was called on this Process.void
processFinished(int returncode, Ice.Current __current)
Process terminated normally.void
processKilled(boolean success, Ice.Current __current)
kill() was called on this Process.-
Methods inherited from class omero.grid._ProcessCallbackDisp
___processCancelled, ___processFinished, ___processKilled, __dispatch, __readImpl, __writeImpl, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, processCancelled, processFinished, processKilled
-
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
-
-
-
-
Field Detail
-
process
protected final ProcessPrx process
Proxy passed to this instance on creation. Can be used by subclasses freely. The object will not be nulled, but may be closed server-side.
-
-
Constructor Detail
-
ProcessCallbackI
public ProcessCallbackI(ProcessCallbackI pcb) throws ServerError
- Throws:
ServerError
-
ProcessCallbackI
public ProcessCallbackI(client client, ProcessPrx process) throws ServerError
- Throws:
ServerError
-
ProcessCallbackI
public ProcessCallbackI(client client, ProcessPrx process, boolean poll) throws ServerError
- Throws:
ServerError
-
ProcessCallbackI
public ProcessCallbackI(Ice.ObjectAdapter adapter, java.lang.String category, ProcessPrx process) throws ServerError
- Throws:
ServerError
-
ProcessCallbackI
public ProcessCallbackI(Ice.ObjectAdapter adapter, java.lang.String category, ProcessPrx process, boolean poll) throws ServerError
- Throws:
ServerError
-
-
Method Detail
-
block
public ProcessCallbackI.Action block(long ms) throws java.lang.InterruptedException
Should only be used if the default logic of the process methods is kept in place. If "q.put" does not get called, this method will always block for the given milliseconds.- Throws:
java.lang.InterruptedException
-
processCancelled
public void processCancelled(boolean success, Ice.Current __current)
Description copied from interface:_ProcessCallbackOperations
cancel() was called on this Process. If the Process failed to terminate, argument is false, in which calling kill() is the last resort.__current
- The Current object for the invocation.
-
processFinished
public void processFinished(int returncode, Ice.Current __current)
Description copied from interface:_ProcessCallbackOperations
Process terminated normally. Return code provided. In the case that a non-Blitz process sent a signal (KILL, TERM, ... ), that will represented in the return code.__current
- The Current object for the invocation.
-
processKilled
public void processKilled(boolean success, Ice.Current __current)
Description copied from interface:_ProcessCallbackOperations
kill() was called on this Process. If this does not succeed, there is nothing else that Blitz can do to stop its execution.__current
- The Current object for the invocation.
-
close
public void close()
-
-