Package omero.grid
Interface _ImportProcessOperationsNC
-
- All Superinterfaces:
_ServiceInterfaceOperationsNC,_StatefulServiceInterfaceOperationsNC
- All Known Subinterfaces:
ImportProcess
- All Known Implementing Classes:
_ImportProcessDisp,_ImportProcessTie
public interface _ImportProcessOperationsNC extends _StatefulServiceInterfaceOperationsNC
User configuration options. These are likely set in the UI before the import is initiated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HandlePrxgetHandle()Reacquire the handle which was returned byverifyUpload.ImportSettingsgetImportSettings()RawFileStorePrxgetUploader(int i)Step 1: Returns a RawFileStore that can be used to upload one of the used files.longgetUploadOffset(int i)In case an upload must be resumed, this provides the location of the last successful upload.HandlePrxverifyUpload(java.util.List<java.lang.String> hash)Step 2: Passes a set of client-side calculated hashes to the server for verifying that all of the files were correctly uploaded.-
Methods inherited from interface omero.api._StatefulServiceInterfaceOperationsNC
activate_async, close_async, getCurrentEventContext_async, passivate_async
-
-
-
-
Method Detail
-
getUploader
RawFileStorePrx getUploader(int i) throws ServerError
Step 1: Returns a RawFileStore that can be used to upload one of the used files. The index is the same as the used file listed inImportLocation.omero.api.RawFileStore.closeshould be called once all data has been transferred. If the file must be re-written, callgetUploaderwith the same index again. Once all uploads have been completed,verifyUploadshould be called to initiate background processing- Throws:
ServerError
-
verifyUpload
HandlePrx verifyUpload(java.util.List<java.lang.String> hash) throws ServerError
Step 2: Passes a set of client-side calculated hashes to the server for verifying that all of the files were correctly uploaded. If this passes then aHandleproxy is returned, which completes all the necessary import steps. A successful import will return anImportResponse. Otherwise, someERRwill be returned.- Throws:
ServerError
-
getUploadOffset
long getUploadOffset(int i) throws ServerErrorIn case an upload must be resumed, this provides the location of the last successful upload.- Throws:
ServerError
-
getHandle
HandlePrx getHandle() throws ServerError
Reacquire the handle which was returned byverifyUpload. This is useful in case a new client is re-attaching to a running import. From theHandleinstance, the originalImportRequestcan also be found.- Throws:
ServerError
-
getImportSettings
ImportSettings getImportSettings()
-
-