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.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 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 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 thesavedPlates
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)
-
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:
setServiceFactory
in interfaceServiceFactoryAware
- Throws:
ServerError
-
onSetOmeroContext
public void onSetOmeroContext(ome.system.OmeroContext ctx) throws java.lang.Exception
Description copied from class:AbstractAmdServant
To be overridden by subclasses.- Overrides:
onSetOmeroContext
in classAbstractAmdServant
- Throws:
java.lang.Exception
-
createRoot_async
public void createRoot_async(AMD_MetadataStore_createRoot __cb, Ice.Current __current) throws ServerError
- Specified by:
createRoot_async
in interface_MetadataStoreOperations
- Throws:
ServerError
-
populateMinMax_async
public void populateMinMax_async(AMD_MetadataStore_populateMinMax __cb, double[][][] imageChannelGlobalMinMax, Ice.Current __current) throws ServerError
- Specified by:
populateMinMax_async
in interface_MetadataStoreOperations
- Throws:
ServerError
-
saveToDB_async
public void saveToDB_async(AMD_MetadataStore_saveToDB __cb, FilesetJobLink link, Ice.Current __current) throws ServerError
- Specified by:
saveToDB_async
in interface_MetadataStoreOperations
- Throws:
ServerError
-
updateObjects_async
public void updateObjects_async(AMD_MetadataStore_updateObjects __cb, IObjectContainer[] objects, Ice.Current __current) throws ServerError
- Specified by:
updateObjects_async
in 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_async
in 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 thesavedPlates
to 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_async
in 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_async
in 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
null
ifx
isnull
.
-
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
null
ifx
isnull
.
-
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
null
ifx
isnull
.
-
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
null
ifx
isnull
.
-
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
null
ifx
isnull
.
-
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
null
ifx
isnull
.
-
preClose
protected void preClose(Ice.Current current)
- Specified by:
preClose
in classAbstractCloseableAmdServant
-
postClose
protected void postClose(Ice.Current current)
Description copied from class:AbstractCloseableAmdServant
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.- Specified by:
postClose
in classAbstractCloseableAmdServant
-
-