OmeroBlitz API
Home Previous Up Next Index

omero::grid::ImportProcess

Overview

interface ImportProcess extends api::StatefulServiceInterface

User configuration options. These are likely set in the UI before the import is initiated.

Operation Index

getUploader
Step 1: Returns a RawFileStore that can be used to upload one of the used files.
verifyUpload
Step 2: Passes a set of client-side calculated hashes to the server for verifying that all of the files were correctly uploaded.
getUploadOffset
In case an upload must be resumed, this provides the location of the last successful upload.
getHandle
Reacquire the handle which was returned by {@code verifyUpload}.
getImportSettings

Operations

api::RawFileStore* 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 in {@code ImportLocation}. {@code omero.api.RawFileStore.close} should be called once all data has been transferred. If the file must be re-written, call {@code getUploader} with the same index again. Once all uploads have been completed, {@code verifyUpload} should be called to initiate background processing

cmd::Handle* verifyUpload(api::StringSet 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 a cmd::Handle proxy is returned, which completes all the necessary import steps. A successful import will return an {@code ImportResponse}. Otherwise, some cmd::ERR will be returned.

long getUploadOffset(int i) throws ServerError

In case an upload must be resumed, this provides the location of the last successful upload.

cmd::Handle* getHandle() throws ServerError

Reacquire the handle which was returned by {@code verifyUpload}. This is useful in case a new client is re-attaching to a running import. From the cmd::Handle instance, the original {@code ImportRequest} can also be found.

ImportSettings getImportSettings()


Home Previous Up Next Index