Package ome.services.blitz.impl
Class MetadataStoreI
- java.lang.Object
-
- ome.services.blitz.impl.AbstractAmdServant
-
- ome.services.blitz.impl.AbstractCloseableAmdServant
-
- ome.services.blitz.impl.MetadataStoreI
-
- All Implemented Interfaces:
BlitzOnly,ServiceFactoryAware,_MetadataStoreOperations,_ServiceInterfaceOperations,_StatefulServiceInterfaceOperations,CloseableServant,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class MetadataStoreI extends AbstractCloseableAmdServant implements _MetadataStoreOperations, ServiceFactoryAware, BlitzOnly
-
-
Field Summary
Fields Modifier and Type Field Description protected ome.io.nio.OriginalFilesServicefilesServiceprotected java.lang.StringomeroDataDirprotected PopulateRoiJobpopRoiprotected java.util.Set<java.lang.Long>savedImagesNotInPlatesprotected java.util.Set<java.lang.Long>savedPlatesprotected ServiceFactoryIsfprotected ome.util.SqlActionsqlprotected ome.formats.OMEROMetadataStorestore
-
Constructor Summary
Constructors Constructor Description MetadataStoreI(BlitzExecutor be, PopulateRoiJob popRoi, ome.util.SqlAction sql, ome.io.nio.OriginalFilesService filesService, java.lang.String omeroDataDir)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateRoot_async(AMD_MetadataStore_createRoot __cb, Ice.Current __current)voidonSetOmeroContext(ome.system.OmeroContext ctx)To be overridden by subclasses.voidpopulateMinMax_async(AMD_MetadataStore_populateMinMax __cb, double[][][] imageChannelGlobalMinMax, Ice.Current __current)protected voidpostClose(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.voidpostProcess_async(AMD_MetadataStore_postProcess __cb, Ice.Current __current)Called after some number of Passes thesavedPlatesto a background processor for further work.protected voidpreClose(Ice.Current current)voidsaveToDB_async(AMD_MetadataStore_saveToDB __cb, FilesetJobLink link, Ice.Current __current)voidsetPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb, long pixelsId, java.lang.String file, java.lang.String repo, Ice.Current __current)voidsetServiceFactory(ServiceFactoryI sf)java.lang.BooleantoJavaType(RBool x)Transforms an OMERO RType into the corresponding Java type.java.lang.DoubletoJavaType(RDouble x)Transforms an OMERO RType into the corresponding Java type.java.lang.FloattoJavaType(RFloat x)Transforms an OMERO RType into the corresponding Java type.java.lang.IntegertoJavaType(RInt x)Transforms an OMERO RType into the corresponding Java type.java.lang.LongtoJavaType(RLong x)Transforms an OMERO RType into the corresponding Java type.java.lang.StringtoJavaType(RString x)Transforms an OMERO RType into the corresponding Java type.voidupdateObjects_async(AMD_MetadataStore_updateObjects __cb, IObjectContainer[] objects, Ice.Current __current)voidupdateReferences_async(AMD_MetadataStore_updateReferences __cb, java.util.Map<java.lang.String,java.lang.String[]> references, Ice.Current __current)-
Methods inherited from class ome.services.blitz.impl.AbstractCloseableAmdServant
close, close_async
-
Methods inherited from class ome.services.blitz.impl.AbstractAmdServant
activate_async, applyHardWiredInterceptors, callInvokerOnMappedArgs, callInvokerOnRawArgs, executorWorkCall, getCurrentEventContext_async, passivate_async, runnableCall, safeRunnableCall, setApplicationContext, setHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface omero.api._StatefulServiceInterfaceOperations
activate_async, close_async, getCurrentEventContext_async, passivate_async
-
-
-
-
Field Detail
-
savedPlates
protected final java.util.Set<java.lang.Long> savedPlates
-
savedImagesNotInPlates
protected final java.util.Set<java.lang.Long> savedImagesNotInPlates
-
store
protected ome.formats.OMEROMetadataStore store
-
sf
protected ServiceFactoryI sf
-
popRoi
protected PopulateRoiJob popRoi
-
sql
protected final ome.util.SqlAction sql
-
filesService
protected final ome.io.nio.OriginalFilesService filesService
-
omeroDataDir
protected final java.lang.String omeroDataDir
-
-
Constructor Detail
-
MetadataStoreI
public MetadataStoreI(BlitzExecutor be, PopulateRoiJob popRoi, ome.util.SqlAction sql, ome.io.nio.OriginalFilesService filesService, java.lang.String omeroDataDir) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-
Method Detail
-
setServiceFactory
public void setServiceFactory(ServiceFactoryI sf) throws ServerError
- Specified by:
setServiceFactoryin interfaceServiceFactoryAware- Throws:
ServerError
-
onSetOmeroContext
public void onSetOmeroContext(ome.system.OmeroContext ctx) throws java.lang.ExceptionDescription copied from class:AbstractAmdServantTo be overridden by subclasses.- Overrides:
onSetOmeroContextin classAbstractAmdServant- Throws:
java.lang.Exception
-
createRoot_async
public void createRoot_async(AMD_MetadataStore_createRoot __cb, Ice.Current __current) throws ServerError
- Specified by:
createRoot_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
populateMinMax_async
public void populateMinMax_async(AMD_MetadataStore_populateMinMax __cb, double[][][] imageChannelGlobalMinMax, Ice.Current __current) throws ServerError
- Specified by:
populateMinMax_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
saveToDB_async
public void saveToDB_async(AMD_MetadataStore_saveToDB __cb, FilesetJobLink link, Ice.Current __current) throws ServerError
- Specified by:
saveToDB_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
updateObjects_async
public void updateObjects_async(AMD_MetadataStore_updateObjects __cb, IObjectContainer[] objects, Ice.Current __current) throws ServerError
- Specified by:
updateObjects_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
updateReferences_async
public void updateReferences_async(AMD_MetadataStore_updateReferences __cb, java.util.Map<java.lang.String,java.lang.String[]> references, Ice.Current __current) throws ServerError
- Specified by:
updateReferences_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
postProcess_async
public void postProcess_async(AMD_MetadataStore_postProcess __cb, Ice.Current __current) throws ServerError
Called after some number of Passes thesavedPlatesto a background processor for further work. This happens onAbstractCloseableAmdServant.close_async(AMD_StatefulServiceInterface_close, Current)since no further pixels can be created, but also oncreateRoot_async(AMD_MetadataStore_createRoot, Current)which is used by the client to reset the status of this instance. To prevent any possible- Specified by:
postProcess_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
setPixelsFile_async
public void setPixelsFile_async(AMD_MetadataStore_setPixelsFile __cb, long pixelsId, java.lang.String file, java.lang.String repo, Ice.Current __current) throws ServerError
- Specified by:
setPixelsFile_asyncin interface_MetadataStoreOperations- Throws:
ServerError
-
toJavaType
public java.lang.Integer toJavaType(RInt x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
toJavaType
public java.lang.Long toJavaType(RLong x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
toJavaType
public java.lang.Boolean toJavaType(RBool x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
toJavaType
public java.lang.Float toJavaType(RFloat x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
toJavaType
public java.lang.Double toJavaType(RDouble x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
toJavaType
public java.lang.String toJavaType(RString x)
Transforms an OMERO RType into the corresponding Java type.- Parameters:
x- OMERO RType value.- Returns:
- Java type or
nullifxisnull.
-
preClose
protected void preClose(Ice.Current current)
- Specified by:
preClosein classAbstractCloseableAmdServant
-
postClose
protected void postClose(Ice.Current current)
Description copied from class:AbstractCloseableAmdServantShould 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.- Specified by:
postClosein classAbstractCloseableAmdServant
-
-