Package ome.formats.importer
Class ImportLibrary.ImportCallback
- java.lang.Object
-
- Ice.ObjectImpl
-
- omero.cmd._CmdCallbackDisp
-
- omero.cmd.CmdCallbackI
-
- ome.formats.importer.ImportLibrary.ImportCallback
-
- All Implemented Interfaces:
Ice.Object
,java.io.Serializable
,java.lang.Cloneable
,_CmdCallbackOperations
,_CmdCallbackOperationsNC
,CmdCallback
- Enclosing class:
- ImportLibrary
public class ImportLibrary.ImportCallback extends CmdCallbackI
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class omero.cmd.CmdCallbackI
handle
-
Fields inherited from class omero.cmd._CmdCallbackDisp
__ids
-
Fields inherited from interface omero.cmd.CmdCallback
ice_staticId
-
-
Constructor Summary
Constructors Constructor Description ImportCallback(ImportProcessPrx proc, HandlePrx handle, ImportContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImportResponse
getImportResponse()
Assumes that users have already waited on proper completion, i.e.protected java.lang.Long
loadLogFile()
void
onFinished(Response rsp, Status status, Ice.Current c)
Overridden to handle the end of the process.void
step(int step, int total, Ice.Current current)
Called periodically by the server to signal that processing is moving forward.-
Methods inherited from class omero.cmd.CmdCallbackI
block, close, finished, getResponse, getStatus, getStatusOrThrow, initializationDone, initialPoll, isCancelled, isFailure, loop, onFinishedDone, poll, waitOnFinishedDone, waitOnInitialization
-
Methods inherited from class omero.cmd._CmdCallbackDisp
___finished, ___step, __dispatch, __readImpl, __writeImpl, finished, ice_copyStateFrom, ice_id, ice_id, ice_ids, ice_ids, ice_isA, ice_isA, ice_staticId, step
-
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
-
-
-
-
Constructor Detail
-
ImportCallback
public ImportCallback(ImportProcessPrx proc, HandlePrx handle, ImportContainer container) throws ServerError
- Throws:
ServerError
-
-
Method Detail
-
loadLogFile
protected java.lang.Long loadLogFile() throws ServerError
- Throws:
ServerError
-
step
public void step(int step, int total, Ice.Current current)
Description copied from class:CmdCallbackI
Called periodically by the server to signal that processing is moving forward. Default implementation does nothing.- Specified by:
step
in interface_CmdCallbackOperations
- Overrides:
step
in classCmdCallbackI
current
- The Current object for the invocation.
-
onFinished
public void onFinished(Response rsp, Status status, Ice.Current c)
Overridden to handle the end of the process.- Overrides:
onFinished
in classCmdCallbackI
- Parameters:
rsp
- the responsestatus
- the statusc
- regarding the current method invocation- See Also:
CmdCallbackI.onFinished(Response, Status, Current)
-
getImportResponse
public ImportResponse getImportResponse()
Assumes that users have already waited on proper completion, i.e. thatonFinished(Response, Status, Current)
has been called.- Returns:
- may be null.
-
-