public class MetadataStoreI extends AbstractCloseableAmdServant implements _MetadataStoreOperations, ServiceFactoryAware, BlitzOnly
| Modifier and Type | Field and Description |
|---|---|
protected ome.io.nio.OriginalFilesService |
filesService |
protected java.lang.String |
omeroDataDir |
protected PopulateRoiJob |
popRoi |
protected java.util.Set<java.lang.Long> |
savedImagesNotInPlates |
protected java.util.Set<java.lang.Long> |
savedPlates |
protected ServiceFactoryI |
sf |
protected ome.util.SqlAction |
sql |
protected ome.formats.OMEROMetadataStore |
store |
| Constructor and Description |
|---|
MetadataStoreI(BlitzExecutor be,
PopulateRoiJob popRoi,
ome.util.SqlAction sql,
ome.io.nio.OriginalFilesService filesService,
java.lang.String omeroDataDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
createRoot_async(AMD_MetadataStore_createRoot __cb,
Ice.Current __current) |
void |
onSetOmeroContext(ome.system.OmeroContext ctx)
To be overridden by subclasses.
|
void |
populateMinMax_async(AMD_MetadataStore_populateMinMax __cb,
double[][][] imageChannelGlobalMinMax,
Ice.Current __current) |
protected void |
postClose(Ice.Current current)
Should not throw any exceptions which should be detected by clients
since it is called in a finally block after the client thread has been
released.
|
void |
postProcess_async(AMD_MetadataStore_postProcess __cb,
Ice.Current __current)
Called after some number of Passes the
savedPlates to a
background processor for further work. |
protected void |
preClose(Ice.Current current) |
void |
saveToDB_async(AMD_MetadataStore_saveToDB __cb,
FilesetJobLink link,
Ice.Current __current) |
void |
setPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb,
long pixelsId,
java.lang.String file,
java.lang.String repo,
Ice.Current __current) |
void |
setServiceFactory(ServiceFactoryI sf) |
java.lang.Boolean |
toJavaType(RBool x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Double |
toJavaType(RDouble x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Float |
toJavaType(RFloat x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Integer |
toJavaType(RInt x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.Long |
toJavaType(RLong x)
Transforms an OMERO RType into the corresponding Java type.
|
java.lang.String |
toJavaType(RString x)
Transforms an OMERO RType into the corresponding Java type.
|
void |
updateObjects_async(AMD_MetadataStore_updateObjects __cb,
IObjectContainer[] objects,
Ice.Current __current) |
void |
updateReferences_async(AMD_MetadataStore_updateReferences __cb,
java.util.Map<java.lang.String,java.lang.String[]> references,
Ice.Current __current) |
close_async, closeactivate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactivate_async, close_async, getCurrentEventContext_async, passivate_asyncprotected final java.util.Set<java.lang.Long> savedPlates
protected final java.util.Set<java.lang.Long> savedImagesNotInPlates
protected ome.formats.OMEROMetadataStore store
protected ServiceFactoryI sf
protected PopulateRoiJob popRoi
protected final ome.util.SqlAction sql
protected final ome.io.nio.OriginalFilesService filesService
protected final java.lang.String omeroDataDir
public MetadataStoreI(BlitzExecutor be, PopulateRoiJob popRoi, ome.util.SqlAction sql, ome.io.nio.OriginalFilesService filesService, java.lang.String omeroDataDir) throws java.lang.Exception
java.lang.Exceptionpublic void setServiceFactory(ServiceFactoryI sf) throws ServerError
setServiceFactory in interface ServiceFactoryAwareServerErrorpublic void onSetOmeroContext(ome.system.OmeroContext ctx)
throws java.lang.Exception
AbstractAmdServantonSetOmeroContext in class AbstractAmdServantjava.lang.Exceptionpublic void createRoot_async(AMD_MetadataStore_createRoot __cb, Ice.Current __current) throws ServerError
createRoot_async in interface _MetadataStoreOperationsServerErrorpublic void populateMinMax_async(AMD_MetadataStore_populateMinMax __cb, double[][][] imageChannelGlobalMinMax, Ice.Current __current) throws ServerError
populateMinMax_async in interface _MetadataStoreOperationsServerErrorpublic void saveToDB_async(AMD_MetadataStore_saveToDB __cb, FilesetJobLink link, Ice.Current __current) throws ServerError
saveToDB_async in interface _MetadataStoreOperationsServerErrorpublic void updateObjects_async(AMD_MetadataStore_updateObjects __cb, IObjectContainer[] objects, Ice.Current __current) throws ServerError
updateObjects_async in interface _MetadataStoreOperationsServerErrorpublic void updateReferences_async(AMD_MetadataStore_updateReferences __cb, java.util.Map<java.lang.String,java.lang.String[]> references, Ice.Current __current) throws ServerError
updateReferences_async in interface _MetadataStoreOperationsServerErrorpublic void postProcess_async(AMD_MetadataStore_postProcess __cb, Ice.Current __current) throws ServerError
savedPlates to a
background processor for further work. This happens on
AbstractCloseableAmdServant.close_async(AMD_StatefulServiceInterface_close, Current) since
no further pixels can be created, but also on
createRoot_async(AMD_MetadataStore_createRoot, Current) which is
used by the client to reset the status of this instance. To prevent any
possiblepostProcess_async in interface _MetadataStoreOperationsServerErrorpublic void setPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb, long pixelsId, java.lang.String file, java.lang.String repo, Ice.Current __current) throws ServerError
setPixelsFile_async in interface _MetadataStoreOperationsServerErrorpublic java.lang.Integer toJavaType(RInt x)
x - OMERO RType value.null if x is
null.public java.lang.Long toJavaType(RLong x)
x - OMERO RType value.null if x is
null.public java.lang.Boolean toJavaType(RBool x)
x - OMERO RType value.null if x is
null.public java.lang.Float toJavaType(RFloat x)
x - OMERO RType value.null if x is
null.public java.lang.Double toJavaType(RDouble x)
x - OMERO RType value.null if x is
null.public java.lang.String toJavaType(RString x)
x - OMERO RType value.null if x is
null.protected void preClose(Ice.Current current)
preClose in class AbstractCloseableAmdServantprotected void postClose(Ice.Current current)
AbstractCloseableAmdServantpostClose in class AbstractCloseableAmdServant